/* M-Politik Connect - app del militante. Identidad: rojo corporativo, negro y dorado del logo. */
:root {
  --brand: #C80000;
  --brand-ink: #FFFFFF;
  --ink: #0F0E0F;
  --muted: #5E5A57;
  --line: #E4DFDA;
  --bg: #F2EFEB;
  --card: #FFFFFF;
  --gold: #E3B063;
  --ok: #17703F;
  --warn: #8A5A00;
  --r: 16px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; }
html, body { overscroll-behavior: none; }
.chatbox, .gsr { overscroll-behavior: contain; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, video { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { height: 100%; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--bg); position: relative; }

/* ---------- Encabezado ---------- */
.hdr { background: var(--ink); color: #fff; padding: calc(10px + var(--safe-t)) 16px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 3px solid var(--brand); flex-shrink: 0; min-height: 58px; }
.hdr img.logo { height: 28px; width: auto; }
.hdr .tag { font-size: 11px; letter-spacing: .22em; color: var(--gold); font-weight: 600; text-transform: uppercase; }
.hdr .chip { background: #fff; border-radius: 10px; padding: 4px 8px; display: flex; align-items: center; }
.hdr .chip img { height: 26px; width: auto; max-width: 130px; object-fit: contain; }
.hdr .name { font-weight: 700; font-size: 17px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr .sp { flex: 1; }
.hdr .live { width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); }
.hdr .live.off { background: #8A8480; box-shadow: none; }

/* ---------- Contenido ---------- */
.main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px 24px; }
.main.flush { padding: 0; display: flex; flex-direction: column; }
.stack { display: flex; flex-direction: column; gap: 12px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 19px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.card.pad0 { padding: 0; overflow: hidden; }

/* ---------- Botones y campos ---------- */
.btn { min-height: 50px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn:active { transform: translateY(1px); filter: brightness(.94); }
.btn[disabled] { opacity: .55; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.danger { background: #fff; color: #B00020; border: 1.5px solid #E7B7BE; }
.btn.sm { min-height: 44px; font-size: 15px; width: auto; padding: 0 16px; border-radius: 12px; }
.btn.good { background: var(--ok); color: #fff; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 0; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 50px; padding: 0 14px; border: 1.5px solid #CFC9C2; border-radius: 12px; background: #fff; font-size: 16px; width: 100%; }
.field textarea { padding: 12px 14px; min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .btn:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.err { background: #FDECEC; color: #8F0013; border: 1px solid #F1B8BE; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.okbox { background: #E8F5EE; color: #105A32; border: 1px solid #B5DCC6; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.infobox { background: #FFF6E3; color: #5C4000; border: 1px solid #F0D79B; border-radius: 12px; padding: 12px; font-size: 14px; }
.link { background: none; border: 0; color: var(--brand); font-weight: 600; text-decoration: underline; padding: 0; font-size: inherit; }

/* ---------- Onboarding ---------- */
.ob { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.ob .band { background: var(--ink); color: #fff; padding: calc(28px + var(--safe-t)) 22px 26px; border-bottom: 3px solid var(--brand); }
.ob .band img.big { height: 40px; width: auto; }
.ob .band .chipbig { background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-flex; }
.ob .band .chipbig img { height: 38px; max-width: 200px; object-fit: contain; }
.ob .band h1 { color: #fff; margin-top: 20px; font-size: 28px; }
.ob .band p { color: #D9D3CC; margin-top: 8px; font-size: 16px; }
.ob .hero { position: relative; display: flex; align-items: flex-end; min-height: min(64vh, 600px); background-size: cover; background-position: center top; background-color: var(--ink); color: #fff; border-bottom: 3px solid var(--brand); }
.ob .hero .hshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.82) 100%); }
.ob .hero .hlogo { position: absolute; top: calc(14px + var(--safe-t)); left: 16px; }
.ob .hero .hlogo .chipbig { padding: 6px 9px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.ob .hero .hlogo .chipbig img { height: 34px; }
.ob .hero .htxt { position: relative; width: 100%; padding: 0 22px 22px; }
.ob .hero h1 { color: #fff; font-size: 30px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.ob .hero p { color: #F2EEE8; margin-top: 8px; font-size: 17px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.ob .hero.strip { min-height: 190px; background-position: center 84%; }
.ob .hero.strip h1 { font-size: 22px; }
.ob .hero.wide { display: block; flex-shrink: 0; min-height: 0; background: var(--ink); }
.ob .hero.wide .hpic { width: 100%; background-size: cover; background-position: center; }
.ob .hero.wide .hshade, .ob .hero.wide .hlogo { display: none; }
.ob .hero.wide .htxt { padding: 16px 22px 20px; }
.ob .hero.wide h1 { font-size: 24px; text-shadow: none; }
.ob .hero.wide.strip h1 { font-size: 20px; }
.ob .hero.wide p { text-shadow: none; }
.ob .body { padding: 20px 20px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: #D8D2CB; }
.steps i.on { background: var(--brand); }
.perk { display: flex; gap: 12px; align-items: center; }
.perk .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.foot { font-size: 12px; color: var(--muted); text-align: center; padding-top: 6px; }
.foot b { color: var(--ink); }

/* ---------- Barra inferior ---------- */
.tabbar { display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: var(--safe-b); flex-shrink: 0; }
.tabbar button { flex: 1; min-height: 62px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); position: relative; }
.tabbar button.on { color: var(--brand); }
.tabbar button.on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.badge.dot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 10px; }

/* ---------- Canal: tarjetas ---------- */
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.post.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--brand); } 100% { box-shadow: 0 0 0 0 transparent; } }
.post .top { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: contain; }
.post .who { font-weight: 700; font-size: 14px; line-height: 1.2; }
.post .when { font-size: 12px; color: var(--muted); }
.post .content { padding: 2px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.post .ttl { font-weight: 700; font-size: 17px; line-height: 1.3; }
.post .txt { white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.post video, .post .imgm { width: 100%; background: #000; max-height: 460px; object-fit: contain; }
.post .imgm { object-fit: cover; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #F2EFEB; color: var(--muted); }
.tag.gold { background: #FBEFD6; color: #6D4A00; }
.tag.demo { background: #EDE7FF; color: #4B2BB5; }

.poll { display: flex; flex-direction: column; gap: 8px; }
.opt { position: relative; min-height: 48px; border-radius: 12px; border: 1.5px solid #CFC9C2; background: #fff; text-align: left; padding: 0 14px; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow: hidden; width: 100%; }
.opt .bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--brand) 14%, #fff); z-index: 0; transition: width .5s; }
.opt > span { position: relative; z-index: 1; }
.opt.mine { border-color: var(--brand); }
.opt .pct { font-variant-numeric: tabular-nums; }

.evt { display: flex; gap: 12px; align-items: center; background: #FAF8F5; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.evt .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.evt b { display: block; line-height: 1.25; }

/* ---------- Chat ---------- */
.chatbox { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #EAE5DE; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: #fff; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; align-self: flex-start; }
.msg .nm { font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 1px; }
.msg .nm.adm { color: #6D4A00; }
.msg .tm { font-size: 11px; color: var(--muted); text-align: right; margin-top: 2px; }
.msg.me { align-self: flex-end; background: #F7D3D3; border-radius: 16px 4px 16px 16px; }
.msg.adm { background: var(--ink); color: #fff; }
.msg.adm .tm { color: #BDB6AE; }
.msg.adm .nm { color: var(--gold); }
/* v525: mensaje de grupo editado o eliminado por Comando (sin límite de tiempo; nunca desaparece sin rastro) */
.msg .delmsg { font-style: italic; opacity: .75; }
.msg .tm .edtag { font-style: italic; opacity: .75; }
.msg.del { opacity: .7; }
.day { align-self: center; font-size: 12px; font-weight: 600; color: var(--muted); background: #D9D3CB; border-radius: 99px; padding: 3px 12px; }
.composer { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); flex-shrink: 0; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 46px; max-height: 120px; border: 1.5px solid #CFC9C2; border-radius: 23px; padding: 11px 16px; resize: none; font-size: 16px; background: #F8F6F3; }
.composer .send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; }
.composer .send[disabled] { opacity: .5; }
.lockbar { padding: 14px; text-align: center; font-size: 13px; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }

.seg { display: flex; background: #E6E1DA; border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 40px; border: 0; background: none; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.glist { display: flex; flex-direction: column; }
.gitem { display: flex; gap: 12px; align-items: center; padding: 14px; border: 0; background: #fff; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.gitem .gav { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.gitem .gav.z { background: #FBEFD6; color: #6D4A00; }
.gitem .meta { flex: 1; min-width: 0; }
.gitem .meta b { display: block; line-height: 1.2; }
.gitem .meta span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subhdr { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.subhdr .ib { width: 44px; height: 44px; border: 0; background: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.subhdr b { line-height: 1.2; display: block; }
.subhdr small { color: var(--muted); font-size: 12px; }

.prog { height: 10px; background: #E9E4DD; border-radius: 6px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--brand); border-radius: 6px; transition: width .5s; }
.stat { background: #F8F6F3; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; flex: 1; text-align: center; }
.stat b { display: block; font-size: 18px; }
.stat span { font-size: 11px; color: var(--muted); }

/* ---------- Perfil ---------- */
.li { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; border: 0; background: #fff; width: 100%; text-align: left; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.li:last-child { border-bottom: 0; }
.li small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.pill.ok { background: #E1F3E9; color: #0F5B32; }
.pill.no { background: #F1ECE6; color: var(--muted); }
.pill.lider { background: var(--ink); color: var(--gold); }

/* ---------- Avisos y modal ---------- */
.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; z-index: 50; max-width: 90%; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.modal { position: fixed; inset: 0; background: rgba(15,14,15,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 40; }
.modal .sheet { background: #fff; width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 20px 20px calc(20px + var(--safe-b)); max-height: 85%; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid #E4DFDA; border-top-color: var(--brand); border-radius: 50%; animation: sp .8s linear infinite; margin: 40px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Invitar */
.inv-hero { text-align: center; align-items: stretch; }
.inv-n { font-size: 56px; font-weight: 800; line-height: 1; color: var(--brand); }
.progbar { height: 10px; background: #ECE6DF; border-radius: 99px; overflow: hidden; }
.progbar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s; }
.urlbox { word-break: break-all; background: #F4EFE9; border-radius: 10px; padding: 8px 10px; color: var(--muted); }
.li.rk .pos { width: 28px; height: 28px; border-radius: 50%; background: #F1ECE6; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.li.rk:nth-child(2) .pos { background: var(--gold); color: var(--ink); }
.li.rk.me { background: #FFF6E6; }

/* Adjuntos en el chat */
.composer .attach { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; border-radius: 50%; }
.composer .attach:disabled { opacity: .4; }
.attwrap { display: contents; }
.msg .mimg { display: block; max-width: 100%; max-height: 300px; border-radius: 10px; margin: 2px 0 4px; object-fit: cover; cursor: zoom-in; background: #e6dfd8; min-height: 60px; }
.msg .mfile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.06); color: inherit; text-decoration: none; margin-bottom: 4px; }
.msg .mfile b { display: block; font-size: 14px; word-break: break-word; }
.msg .mfile small { opacity: .7; font-size: 12px; }
.modal.viewer { background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.modal.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }

.composer .mic { background: var(--red, #C80000); }
.recbar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 4px; }
.recbar .grow { flex: 1; }
.recdot { width: 10px; height: 10px; border-radius: 50%; background: #d00; animation: recp 1s infinite; }
@keyframes recp { 50% { opacity: .25; } }
.rectime { font-variant-numeric: tabular-nums; font-weight: 600; }
.msg .maud { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.msg .maud audio { height: 36px; max-width: 220px; }
.msg .maud small { opacity: .7; font-size: 12px; }

.livewave { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 2px; height: 32px; overflow: hidden; min-width: 0; }
.livewave i { width: 3px; border-radius: 2px; background: #C80000; flex: none; transition: height .08s; }
.vp { display: flex; align-items: center; gap: 8px; min-width: 230px; max-width: 280px; padding: 2px 0; }
.vp .vplay { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #C80000; color: #fff; display: grid; place-items: center; flex: none; padding: 0; }
.vp .vmid { flex: 1; min-width: 0; }
.vp .vwave { display: flex; align-items: center; gap: 2px; height: 32px; cursor: pointer; touch-action: none; }
.vp .vwave i { flex: 1; min-width: 2px; border-radius: 2px; background: currentColor; opacity: .3; }
.vp .vwave i.on { opacity: 1; background: #C80000; }
.vp .vtime { font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }
.vp .vspd { border: 0; border-radius: 12px; background: rgba(128,128,128,.25); color: inherit; font-size: 12px; font-weight: 700; padding: 4px 8px; flex: none; }

.loc { display: flex; align-items: center; gap: 10px; border: 0; background: rgba(0,0,0,.06); color: inherit; border-radius: 10px; padding: 8px 10px; margin-bottom: 4px; text-align: left; width: 100%; min-width: 220px; font: inherit; cursor: pointer; }
.loc .locic { width: 38px; height: 38px; border-radius: 50%; background: #C80000; color: #fff; display: grid; place-items: center; flex: none; }
.loc .locic.live { animation: recp 1.4s infinite; }
.loc .locmid b { display: block; font-size: 14px; }
.loc .locmid small { opacity: .7; font-size: 12px; }
.mapov { position: fixed; inset: 0; background: rgba(15,14,15,.7); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 12px; }
.mapcard { background: #fff; color: #0F0E0F; border-radius: 16px; width: 100%; max-width: 640px; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.maphd { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.mapx { border: 0; background: transparent; font-size: 20px; padding: 4px 8px; }
.mapfr { border: 0; width: 100%; height: 55vh; min-height: 280px; background: #eee; }
.mapinfo { padding: 10px 14px; font-size: 13px; opacity: .8; }
.maplink { display: block; text-align: center; padding: 12px; font-weight: 700; color: #C80000; }
.livebar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #FFF1F1; border-bottom: 1px solid #f0c8c8; font-size: 13px; }
.livebar .grow { flex: 1; }

.composer { position: relative; gap: 6px; padding-left: 8px; }
.composer textarea { padding: 10px 14px; min-height: 44px; }
.composer textarea::placeholder { font-size: 14px; color: #8a847c; }
.composer .attach.plus { width: 42px; height: 46px; color: var(--brand, #C80000); transition: transform .15s; }
.composer .attach.plus.open { transform: rotate(45deg); }
.plusmenu { position: absolute; left: 8px; bottom: calc(100% + 8px); background: #fff; border-radius: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: 6px; display: flex; flex-direction: column; min-width: 210px; z-index: 30; }
.plusmenu .pm { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 10px 12px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 600; color: #0F0E0F; text-align: left; }
.plusmenu .pm:active { background: #F1EEEA; }
.plusmenu .pmic { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: grid; place-items: center; flex: none; }

.instbar { position: fixed; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 55; background: #0F0E0F; color: #fff; border: 1px solid #E3B063; border-radius: 14px; padding: 10px 10px 10px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: 560px; margin: 0 auto; }
.instbar .ib-t { flex: 1; min-width: 0; }
.instbar .ib-t b { display: block; font-size: 14px; color: #E3B063; }
.instbar .ib-t small { display: block; font-size: 12px; opacity: .85; line-height: 1.3; }
.instbar .btn { background: #C80000; color: #fff; flex: none; }
.instbar .ib-x { border: 0; background: transparent; color: #fff; font-size: 18px; padding: 6px 8px; opacity: .7; flex: none; }

/* v521: afiliación al PRM — tarjeta propia (a diferencia de .instbar, el texto va arriba y los 3 botones en su propia fila, para que no se compriman) */
.prmbar { position: fixed; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 55; background: #0F0E0F; color: #fff; border: 1px solid #E3B063; border-radius: 14px; padding: 14px 40px 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: 560px; margin: 0 auto; }
.prmbar .ib-t b { display: block; font-size: 14.5px; color: #E3B063; }
.prmbar .ib-t small { display: block; font-size: 12px; opacity: .85; line-height: 1.35; margin-top: 2px; }
.prmbar .prm-btns { display: flex; gap: 8px; }
.prmbar .prm-btns button { flex: 1; min-width: 0; background: #1B1A1A; color: #fff; border: 1px solid #3A3936; border-radius: 10px; padding: 9px 4px; font: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.prmbar .prm-btns button.main { background: #C80000; border-color: #C80000; }
.prmbar .ib-x { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; color: #fff; font-size: 18px; padding: 6px 8px; opacity: .7; }

.phrow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
.phrow select { padding: 0 8px; font-size: 15px; }

/* chulitos de lectura en la conversación con el equipo */
.msg .tk { margin-left: 6px; font-size: 12px; letter-spacing: -2px; opacity: .55; }
.msg .tk.rd { color: #34b7f1; opacity: 1; }

.cedbar { display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; padding: 9px 8px 9px 12px; background: #FFF6E5; border: 1px solid #E3B063; border-radius: 12px; }
.cedbar .ib-t { flex: 1; min-width: 0; }
.cedbar b { display: block; font-size: 13.5px; }
.cedbar small { display: block; font-size: 12px; color: #6b655d; line-height: 1.3; }
.cedbar .btn { flex: none; background: #C80000; color: #fff; }
.cedbar .ib-x { border: 0; background: transparent; font-size: 17px; padding: 6px 8px; opacity: .6; flex: none; }
.composer textarea::placeholder { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.instpill { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; background: rgba(15,14,15,.94); color: #fff; border: 1px solid rgba(227,176,99,.55); border-radius: 999px; box-shadow: 0 10px 28px rgba(0,0,0,.28); font-size: 14px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; animation: pillin .35s ease both; }
.instpill small { font-weight: 400; opacity: .6; font-size: 12.5px; }
.instpill .ring { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(227,176,99,.28); border-top-color: #E3B063; animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pillin { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .instpill .ring { animation-duration: 3s; } }

.dotsanim { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: baseline; }
.dotsanim i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .25; animation: dotp 1.3s ease-in-out infinite; align-self: flex-end; margin-bottom: .18em; }
.dotsanim i:nth-child(2) { animation-delay: .18s; } .dotsanim i:nth-child(3) { animation-delay: .36s; }
@keyframes dotp { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
.perk .ic .ring { display: block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(200,0,0,.2); border-top-color: #C80000; animation: spin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .dotsanim i { animation: none; opacity: .6; } }

.dmbanner { position: fixed; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 60; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 14px; background: rgba(15,14,15,.96); color: #fff; border: 1px solid rgba(227,176,99,.6); border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.3); animation: bnin .32s ease both; cursor: pointer; }
.dmbanner .dmb-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #C80000; display: flex; align-items: center; justify-content: center; color: #fff; }
.dmbanner .dmb-t { min-width: 0; flex: 1; }
.dmbanner b { display: block; font-size: 14px; color: #E3B063; }
.dmbanner small { display: block; font-size: 13px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes bnin { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Tarjetas de enlace con vista previa */
.lnk { color: #0b61d8; text-decoration: underline; word-break: break-all; }
.msg.adm .lnk { color: #8ec1ff; }
.lcard { border-radius: 12px; overflow: hidden; background: rgba(127,127,127,.16); margin: 4px 0 6px; width: 100%; max-width: 320px; text-align: left; }
.lcard.tall { max-width: 230px; }
.lc-media { position: relative; aspect-ratio: 16/9; background: #111; cursor: pointer; overflow: hidden; }
.lc-media.tall { aspect-ratio: 9/16; max-height: 60vh; }
/* v526: logos o imágenes pequeñas/cuadradas (ej. la foto de perfil que usa Calendly) no se recortan a 16:9 — se ven completas */
.lc-media img, .lc-media iframe, .lc-media video { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; background: #000; }
.lc-media.on { cursor: default; }
.lc-ph { width: 100%; height: 100%; background: linear-gradient(135deg, #2a2a2a, #111); }
.lc-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0,0,0,.58); }
.lc-play::after { content: ''; position: absolute; left: 20px; top: 15px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.lc-body { display: block; padding: 8px 10px 9px; color: inherit; text-decoration: none; }
.lc-body small { display: block; font-size: 11px; opacity: .65; }
.lc-body b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.3; margin-top: 1px; }
.lc-body span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; opacity: .8; margin-top: 2px; }

.lc-media.tall { max-height: 52vh; }

/* Video: botón Ampliar y visor propio */
.vbox { position: relative; background: #000; line-height: 0; }
.vbox video { width: 100%; display: block; }
.vexpand { position: absolute; top: 8px; right: 8px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2; }
.vexpand:active { background: rgba(0,0,0,.8); }
.vviewer { position: fixed; inset: 0; z-index: 70; background: #000; display: flex; align-items: center; justify-content: center; }
.vviewer video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vclose { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; height: 46px; padding: 0 18px 0 12px; border-radius: 23px; border: 1.5px solid rgba(255,255,255,.45); background: rgba(20,20,20,.85); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 4px; z-index: 2; }
.vclose span { display: flex; }
.lc-media .vbox { width: 100%; height: 100%; }
.lc-media .vbox video { height: 100%; object-fit: cover; }

/* "escribiendo…" mientras la IA prepara la respuesta */
.msg.typing { display: inline-flex; gap: 5px; align-items: center; padding: 13px 16px; }
.msg.typing i { width: 8px; height: 8px; border-radius: 50%; background: #BDB6AE; animation: tpd 1.2s infinite ease-in-out; }
.msg.typing i:nth-child(2) { animation-delay: .18s; } .msg.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes tpd { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .msg.typing i { animation: none; opacity: .7; } }

/* ---------- Llamadas de voz (v0.13) ---------- */
.vz-hdr { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.vz-hdr:active { background: rgba(255,255,255,.28); }
html.vz-open, html.vz-open body { overflow: hidden; }
.vz { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(56px + var(--safe-t, 0px)) 24px calc(44px + var(--safe-b, 0px)); color: #fff; background: radial-gradient(ellipse at 50% 0%, #3a1214 0%, #1a1011 45%, #0F0E0F 100%); text-align: center; font-family: Poppins, system-ui, sans-serif; }
.vz-top { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8vh; }
.vz-av { width: 104px; height: 104px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 46px; box-shadow: 0 0 0 10px rgba(200,0,0,.18), 0 0 0 22px rgba(200,0,0,.08); animation: vzp 2.2s ease-in-out infinite; margin-bottom: 22px; }
@keyframes vzp { 50% { box-shadow: 0 0 0 14px rgba(200,0,0,.20), 0 0 0 30px rgba(200,0,0,.05); } }
.vz-name { font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.vz-sub { font-size: 17px; color: #e9dcd0; font-variant-numeric: tabular-nums; }
.vz-hint { font-size: 13.5px; color: #b9aea4; max-width: 280px; line-height: 1.45; min-height: 20px; }
.vz-row { display: flex; gap: 28px; justify-content: center; align-items: flex-start; min-height: 96px; flex-wrap: wrap; }
.vz-btn { width: 76px; border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; padding: 0; font: inherit; }
.vz-btn small { font-size: 12.5px; color: #d8cdc3; }
.vz-ic { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; background: #2b2425; }
.vz-btn.ok .vz-ic { background: #1fa971; } .vz-btn.no .vz-ic { background: #d7191f; } .vz-btn.on .vz-ic { background: #fff; }
.vz-ic.rot { transform: rotate(135deg); }
.vz-link { background: none; border: 0; color: #d8cdc3; font-size: 15px; text-decoration: underline; padding: 8px 14px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .vz-av { animation: none; } }

.hdr .live.warn { background: #F5A623; box-shadow: 0 0 0 3px rgba(245,166,35,.25); }
.hdr .live.off.warn { background: #8A8480; box-shadow: none; }


/* ---------- Canal estilo canal de difusión (limpio, como los canales de WhatsApp) ---------- */
.canal { margin: -14px -14px -24px; padding-bottom: 24px; min-height: calc(100% + 38px); background: #ECE6DD; }
.chhead { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.avatar.big { width: 46px; height: 46px; border: 2px solid var(--gold); }
.chinfo { min-width: 0; }
.chname { display: flex; align-items: center; gap: 6px; }
.chname b { font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chname .ver { display: inline-flex; flex: none; }
.chsub { font-size: 12.5px; color: var(--muted); }
.feed { display: flex; flex-direction: column; gap: 8px; padding: 12px 10px 0; }
.feed .day { margin: 6px 0 2px; }
.post.bub { border: 0; border-radius: 18px 18px 18px 5px; box-shadow: 0 1px 1.5px rgba(0,0,0,.12); max-width: 100%; }
.post.bub .content { padding: 10px 14px 0; gap: 6px; }
.post.bub .ttl { font-size: 16px; line-height: 1.3; }
.post.bub .txt { font-size: 15px; line-height: 1.45; }
.post.bub .meta { text-align: right; font-size: 11.5px; color: var(--muted); padding: 2px 12px 7px; }
.post.bub > video, .post.bub .imgm, .post.bub .vbox { display: block; border-radius: 0; }
.post.bub .vbox { border-radius: 0; }
.post.bub .poll, .post.bub .stack { padding: 0; }


/* ---------- Barra superior única ---------- */
.hdr { min-height: 0; padding-top: calc(8px + var(--safe-t)); padding-bottom: 8px; }
.hbrand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.havatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none; }
.havatar img { width: 100%; height: 100%; object-fit: contain; }
.htxt { min-width: 0; }
.hname { display: flex; align-items: center; gap: 6px; }
.hname b { font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hname .ver { display: inline-flex; flex: none; }
.hsub { display: block; font-size: 12px; line-height: 1.2; color: #CFC8BF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vz-hdr { position: relative; width: auto; min-width: 40px; padding: 0 14px 0 12px; gap: 6px; border-radius: 20px; font: 600 14px/1 var(--font); }
.vz-hdr .live { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border: 2px solid var(--ink); box-shadow: none; }
.hdr .sp { flex: 0; }

/* Barra: letras y botón más compactos para que el nombre y el subtítulo quepan completos; zona de la hora/batería del iPhone del mismo color de la barra */
html, body { background: var(--ink); }
.hbrand { gap: 8px; }
.havatar { width: 38px; height: 38px; }
.hname { gap: 5px; }
.hname b { font-size: 15px; }
.hname .ver svg { width: 15px; height: 15px; }
.hsub { font-size: 11.5px; }
.vz-hdr { height: 38px; min-width: 38px; padding: 0 12px 0 10px; gap: 5px; font-size: 13.5px; }
@media (max-width: 340px) { .vz-lbl { display: none; } .vz-hdr { padding: 0 10px; } }

/* iPhone (iOS 26, app instalada): el sistema desenfoca el borde de arriba salvo que lo de arriba sea una barra fija/pegada, ancha y de un solo color */
.hdr { position: sticky; top: 0; z-index: 30; background: #0F0E0F; }

/* ===== v87: responder, info de lectura ===== */
.msg.act { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.msg.act a { -webkit-user-select: text; user-select: text; }
.msg { transition: background-color .4s, box-shadow .4s; }
.msg.flash { box-shadow: 0 0 0 3px var(--gold); }
.msg .quote { display: block; width: 100%; text-align: left; font: inherit; border: 0; border-left: 4px solid var(--brand); background: rgba(0,0,0,.06); border-radius: 8px; padding: 5px 9px; margin: 2px 0 6px; cursor: pointer; color: inherit; }
.msg .quote b { display: block; font-size: 12px; color: var(--brand); line-height: 1.25; }
.msg .quote span { display: block; font-size: 13px; opacity: .8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msg .quote.adm { border-left-color: var(--gold); } .msg .quote.adm b { color: #8a5d00; }
.msg.adm .quote { background: rgba(255,255,255,.12); } .msg.adm .quote b { color: var(--gold); }
.msg .tkb { border: 0; background: none; padding: 0 0 0 6px; font: inherit; font-size: 12px; letter-spacing: -2px; color: inherit; opacity: .55; cursor: pointer; }
.msg .tkb.rd { color: #34b7f1; opacity: 1; }
.replybar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #F6F3EF; border-top: 1px solid var(--line); border-left: 4px solid var(--brand); } .replybar:empty { display: none; }
.replybar .rb-in { flex: 1; min-width: 0; } .replybar b { display: block; font-size: 12.5px; color: var(--brand); } .replybar span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replybar .ib-x { border: 0; background: transparent; font-size: 18px; padding: 6px 8px; opacity: .6; flex: none; }
.mmprev { background: #F6F3EF; border-left: 4px solid var(--brand); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; } .mmprev b { font-size: 13px; color: var(--brand); } .mmprev span { font-size: 14px; word-break: break-word; } .mmprev small { color: var(--muted); }
.modal .sheet .btn.ghost { justify-content: flex-start; }
.ih { display: flex; align-items: center; gap: 8px; margin-top: 4px; } .ih .tk { margin: 0; opacity: 1; font-size: 14px; } .ih .tk:not(.rd) { color: var(--muted); } .ih .tk.rd { color: #34b7f1; } .ih .ihd { color: var(--muted); font-weight: 500; }
.ir { display: flex; align-items: center; gap: 10px; padding: 4px 0; } .avatar.sm { width: 30px; height: 30px; font-size: 13px; font-weight: 700; color: var(--ink); background: #F2EFEB; }
.chatbox .gpost { align-self: stretch; margin: 4px 0; }
.chatbox .gpost .post { max-width: 100%; margin: 0; }
.ubadge { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.gitem .meta b { }
/* ===== v93: semanas, fijados, buscador ===== */
.wkh { display: flex; align-items: center; gap: 8px; width: 100%; margin: 8px 0 4px; padding: 10px 12px; border: 0; border-radius: 12px; background: #DDD6CD; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.wkh .wk-t { flex: 1; font-weight: 700; min-width: 0; } .wkh .wk-n { color: var(--muted); font-size: 12px; flex: none; } .wkh .wk-c { flex: none; font-size: 14px; }
.wkh.c { background: #E8E3DC; }
.pinbar { background: #FFF9E8; border-bottom: 1px solid var(--line); } .pinbar:empty { display: none; }
.pin-h, .pin-i { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; font: inherit; text-align: left; padding: 8px 14px; color: var(--ink); }
.pin-h .pin-t { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pin-n { font-size: 12px; background: var(--ink); color: var(--gold); border-radius: 99px; padding: 0 7px; }
.pin-i { flex-direction: column; align-items: flex-start; gap: 0; border-top: 1px solid var(--line); padding: 8px 14px 8px 36px; } .pin-i b { font-size: 12px; color: var(--brand); } .pin-i span { font-size: 13.5px; }
.gsearch { background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px; } .gsearch .row { display: flex; gap: 6px; align-items: center; }
.gsq { flex: 1; min-width: 0; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; background: #fff; }
.gsr { max-height: 42vh; overflow-y: auto; } .gsri { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 4px; font: inherit; } .gsri b { display: block; font-size: 12px; color: var(--brand); } .gsri span { font-size: 14px; }

/* franja delgada del chat de grupo */
.subhdr.slim { padding: 2px 6px; gap: 2px; }
.subhdr.slim .ib { width: 38px; height: 38px; }
.subhdr.slim .grow { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.subhdr.slim b { display: inline; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subhdr.slim small { font-size: 11px; white-space: nowrap; }

.achips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.achips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.achips button.on { background: var(--ink); color: var(--gold); border-color: var(--ink); }

/* v109: reacciones, notas de voz (mantener pulsado, escuchada) y ayuda de avisos */
.rxrow { display: flex; justify-content: space-between; gap: 4px; padding: 4px 2px 8px; }
.rxrow button { flex: 1; border: 0; background: rgba(128,128,128,.12); border-radius: 22px; font-size: 24px; padding: 6px 0; cursor: pointer; }
.rxrow button.on { background: rgba(52,183,241,.28); outline: 2px solid #34b7f1; }
.msg .rx { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.msg .rxc { border: 1px solid rgba(128,128,128,.35); background: rgba(255,255,255,.65); color: inherit; border-radius: 14px; padding: 1px 7px; font-size: 13px; cursor: pointer; line-height: 1.5; }
.msg.adm .rxc { background: rgba(255,255,255,.12); }
.msg .rxc span { margin-left: 3px; font-size: 12px; font-weight: 600; }
.msg .rxc.on { border-color: #34b7f1; background: rgba(52,183,241,.2); }
.rechint { font-size: 11px; line-height: 1.1; opacity: .7; max-width: 86px; }
.vp.heard .vwave i.on { background: #34b7f1; } .vp.heard .vplay { background: #34b7f1; }
.avs ol { margin: 6px 0 10px 18px; padding: 0; } .avs li { margin: 5px 0; line-height: 1.35; }
.avs .brand { background: rgba(200,0,0,.07); border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.avs .brand b { display: block; margin-bottom: 2px; }
.avs .st { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.avs .achips { flex-wrap: wrap; overflow: visible; }

/* v110: mensajes sin conexion, menciones, mensajes rapidos y transcripcion */
.cwrap { flex-shrink: 0; position: relative; }
.msg .tk.pend { opacity: .8; letter-spacing: 0; font-size: 11px; }
.msg .mnt { color: #0a5cc2; font-weight: 600; } .msg.adm .mnt { color: #8fc2ff; }
.msg .mnt.me { background: rgba(255,200,0,.35); border-radius: 4px; padding: 0 2px; color: inherit; }
.msg.ment { box-shadow: -3px 0 0 #E0A800; }
.abadge { background: #E0A800; color: #1b1400; border-radius: 10px; min-width: 20px; height: 20px; padding: 0 5px; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; margin-right: 6px; }
.mpop { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 4px); background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: 4px; max-height: 260px; overflow: auto; z-index: 30; }
.mpi { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; font: inherit; text-align: left; cursor: pointer; }
.mpi:active, .mpi:hover { background: #F1EEEA; } .mpi small { color: var(--muted); margin-left: auto; }
.mpi .mav { width: 30px; height: 30px; border-radius: 50%; background: var(--ink, #222); color: var(--gold, #E0A800); display: grid; place-items: center; font-weight: 700; flex: none; }
.qbar { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px 2px; background: #fff; border-top: 1px solid var(--line); scrollbar-width: none; }
.qbar::-webkit-scrollbar { display: none; }
.qchip { flex: none; border: 1.5px solid #CFC9C2; background: #F8F6F3; border-radius: 18px; padding: 7px 13px; font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.qchip:active { background: #EEE8E0; }
.composer .qk { font-size: 20px; }
.trx { margin: 2px 0 4px; font-size: 13px; line-height: 1.3; opacity: .9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.trx.open { display: block; -webkit-line-clamp: unset; } .trx.pend { opacity: .6; font-style: italic; cursor: default; }
.trx-i { font-weight: 800; font-size: 10px; background: rgba(128,128,128,.25); border-radius: 4px; padding: 0 4px; margin-right: 6px; vertical-align: 1px; }
/* v111: pausar / continuar / escuchar antes de enviar */
.pausebtn, .contbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: rgba(128,128,128,.18); color: inherit; font: inherit; font-weight: 600; border-radius: 22px; padding: 0 14px; min-height: 44px; cursor: pointer; white-space: nowrap; }
.contbtn { flex: 1; }
.recbar.paused { flex-direction: column; align-items: stretch; gap: 6px; }
.pvrow { display: flex; align-items: center; gap: 10px; } .pvctl { display: flex; align-items: center; gap: 10px; }
.pvplay { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; flex: none; }
.pvwave { flex: 1; display: flex; align-items: center; gap: 2px; height: 34px; cursor: pointer; min-width: 0; }
.pvwave i { flex: 1; min-width: 2px; max-width: 4px; border-radius: 2px; background: rgba(128,128,128,.45); } .pvwave i.on { background: #C80000; }

/* v114: cinta de avisos */
.tkr { display: flex; align-items: stretch; height: 32px; flex-shrink: 0; overflow: hidden; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 32px; user-select: none; -webkit-user-select: none; }
.tkr-l { flex: none; padding: 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; position: relative; z-index: 1; }
.tkr-w { flex: 1; overflow: hidden; min-width: 0; white-space: nowrap; position: relative; }
.tkr-t { display: inline-flex; white-space: nowrap; will-change: transform; animation: tkrmove var(--tkd, 20s) linear infinite; }
.tkr-t.hold { animation-play-state: paused; }
.tkr-s { display: inline-block; padding-left: 12px; } .tkr-s.still { white-space: normal; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 12px; }
@keyframes tkrmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.th-campana { background: #C80000; color: #fff; } .th-campana .tkr-l { background: #8f0000; }
.th-oscuro { background: #141214; color: #E3B063; } .th-oscuro .tkr-l { background: #E3B063; color: #141214; }
.th-dorado { background: #E3B063; color: #1b1405; } .th-dorado .tkr-l { background: #1b1405; color: #E3B063; }
.th-azul { background: #123A73; color: #fff; } .th-azul .tkr-l { background: #0a2347; }
.th-verde { background: #0F6B3A; color: #fff; } .th-verde .tkr-l { background: #08482a; }

/* v115: reenviar por WhatsApp */
.pact { padding: 0 14px 12px; } .pshare { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #1DA851; background: rgba(37,211,102,.12); color: #0b5d2a; font: inherit; font-weight: 700; font-size: 14px; border-radius: 22px; padding: 9px 16px; cursor: pointer; }
.pshare:active { transform: scale(.98); }
.sharesheet { max-height: 92vh; overflow: auto; width: min(520px, 100%); } .shtop { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.shtoday { background: rgba(37,211,102,.12); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.shapp { display: flex; gap: 6px; } .shapp button { flex: 1; border: 1.5px solid #d6d0c8; background: transparent; border-radius: 12px; padding: 10px; font: inherit; font-weight: 600; cursor: pointer; } .shapp button.on { border-color: #1DA851; background: rgba(37,211,102,.14); }
.shlist { display: flex; flex-direction: column; } .shc { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(128,128,128,.25); } .shc.done { opacity: .7; }
.shav { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; } .shok { color: #1DA851; font-weight: 700; font-size: 13px; }
.shgo { background: #25D366 !important; color: #08290F !important; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; min-height: 50px; }
.shdone { display: flex; flex-direction: column; gap: 10px; background: rgba(37,211,102,.14); border-radius: 12px; padding: 12px; }

.shall { display: flex; flex-direction: column; gap: 8px; } .shask { background: rgba(37,211,102,.14); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.divid { text-align: center; font-size: 12px; color: #6b645c; display: flex; align-items: center; gap: 10px; } .divid::before, .divid::after { content: ''; flex: 1; height: 1px; background: rgba(128,128,128,.3); }
/* v117: la cinta de avisos sigue corriendo aunque el teléfono tenga "Reducir movimiento" (la regla general de arriba apaga las animaciones) */
@media (prefers-reduced-motion: reduce) { .tkr-t { animation: tkrmove var(--tkd, 20s) linear infinite !important; } .tkr-t.hold { animation-play-state: paused !important; } }

/* Documentos */
.msg .mdoc { display: block; width: 100%; max-width: 280px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: inherit; text-align: left; overflow: hidden; margin-bottom: 4px; cursor: pointer; font: inherit; }
.msg .mdoc-th { display: block; width: 100%; max-height: 190px; object-fit: cover; object-position: top; background: #fff; }
.msg .mdoc-r { display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
.msg .mdoc-i { flex: none; min-width: 38px; padding: 7px 4px; border-radius: 7px; background: #D32F2F; color: #fff; font-size: 11px; font-weight: 800; text-align: center; }
.msg .mdoc-t b { display: block; font-size: 14px; word-break: break-word; line-height: 1.25; }
.msg .mdoc-t small { opacity: .7; font-size: 12px; }
.docv { position: fixed; inset: 0; z-index: 9999; background: #2b2b2e; display: flex; flex-direction: column; }
.docv-h { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px; background: #111; color: #fff; }
.docv-title { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docv-back, .docv-save { border: 0; border-radius: 999px; padding: 9px 15px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.docv-back { background: #2e2e32; color: #fff; }
.docv-save { background: #D32F2F; color: #fff; }
.docv-b { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 10px 8px calc(env(safe-area-inset-bottom, 0px) + 16px); }
.docv-p { display: block; width: 100%; max-width: 900px; margin: 0 auto 10px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.docv-n { color: #ddd; text-align: center; padding: 50px 20px; font-size: 15px; }

.qr-ov { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.qr-card { background: #fff; border-radius: 18px; padding: 18px; width: min(340px, 100%); display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: stretch; }
.qr-t { font-weight: 700; font-size: 17px; }
.qr-img { background: #fff; border-radius: 10px; padding: 4px; } .qr-img svg { width: 100%; height: auto; display: block; }

/* contador de acciones pendientes */
.seg button.accb { position: relative; }
.seg .abadge { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; margin-left: 7px; border-radius: 10px; background: #C80000; color: #fff; font-size: 12px; font-weight: 800; vertical-align: 1px; }
.chatv { max-width: 260px; border-radius: 12px; overflow: hidden; margin-bottom: 6px; }
.chatv video { width: 100%; max-height: 340px; background: #000; display: block; }

/* Grabadora de video */
.vrec { position: fixed; inset: 0; z-index: 9999; background: #000; display: flex; flex-direction: column; }
.vrec-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vrec-bar { position: absolute; left: 0; top: 0; height: 4px; width: 0; background: #e53935; z-index: 3; transition: width .2s linear; }
.vrec-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(14px + env(safe-area-inset-top)) 14px 10px; display: flex; align-items: center; justify-content: space-between; z-index: 2; background: linear-gradient(#0008, transparent); }
.vrec-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #0006; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.vrec-t { color: #fff; font-size: 17px; font-variant-numeric: tabular-nums; background: #0006; border-radius: 999px; padding: 6px 14px; }
.vrec-t b { color: #ff6b6b; }
.vrec-bot { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 14px; z-index: 2; background: linear-gradient(transparent, #0009); }
.vrec-rev .btn { flex: 1; max-width: 220px; }
.vrec-rec { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 0; display: grid; place-items: center; cursor: pointer; }
.vrec-rec i { width: 56px; height: 56px; border-radius: 50%; background: #e53935; transition: all .2s; }
.vrec-rec.on i { width: 30px; height: 30px; border-radius: 8px; }
.msg .tk.upl { display: inline-block; opacity: 1; padding: 2px 8px; border-radius: 999px; font-weight: 700; color: var(--brand, #C80000); background: linear-gradient(90deg, color-mix(in srgb, var(--brand, #C80000) 28%, transparent) var(--p, 0%), color-mix(in srgb, var(--brand, #C80000) 8%, transparent) var(--p, 0%)); transition: background .2s; }

/* Mis invitados */
.invr { gap: 10px; align-items: center; }
.invr .shav { flex: 0 0 auto; }
.pst { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pst.on { background: #dcfce7; color: #166534; } .pst.off { background: #fef3c7; color: #92400e; }
/* Emojis animados: reacciones y mensajes de solo emojis (sin descargas, solo CSS) */
.rxc.pop, .rxrow button:active { animation: rx-pop .55s cubic-bezier(.2,1.6,.4,1); }
@keyframes rx-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.rxrow button { transition: transform .15s; } .rxrow button:hover { transform: scale(1.25); }
.msg.bigemo { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 4px 8px; font-size: 58px; line-height: 1.1; width: fit-content; cursor: pointer; }
.msg.bigemo .tk, .msg.bigemo .tm, .msg.bigemo time { font-size: 11px; }
.msg.bigemo.play { animation: emo-pop .9s cubic-bezier(.2,1.5,.4,1); }
.msg.bigemo[data-e^="👏"].play { animation: emo-clap .8s ease; }
.msg.bigemo[data-e^="🔥"].play { animation: emo-fire .9s ease; }
.msg.bigemo[data-e^="❤"].play { animation: emo-beat .9s ease; }
.msg.bigemo[data-e^="🙌"].play { animation: emo-raise .9s ease; }
.msg.bigemo[data-e^="💪"].play { animation: emo-flex .9s ease; }
.msg.bigemo[data-e^="🎉"].play { animation: emo-spin 1s cubic-bezier(.3,1.4,.5,1); }
.msg.bigemo[data-e^="🙏"].play { animation: emo-sway 1s ease; }
.msg.bigemo[data-e^="👍"].play { animation: emo-thumb .8s ease; }
.msg.bigemo[data-e^="🇨🇴"].play { animation: emo-wave 1s ease; }
@keyframes emo-pop { 0% { transform: scale(.3) rotate(-10deg); } 55% { transform: scale(1.3) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes emo-clap { 0%,100% { transform: scale(1); } 20% { transform: scale(1.3) rotate(-8deg); } 40% { transform: scale(.9); } 60% { transform: scale(1.3) rotate(8deg); } 80% { transform: scale(.95); } }
@keyframes emo-fire { 0%,100% { transform: scale(1) skewX(0); } 25% { transform: scale(1.2,1.35) skewX(-6deg); } 50% { transform: scale(.95,1.1) skewX(6deg); } 75% { transform: scale(1.25,1.4) skewX(-4deg); } }
@keyframes emo-beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.35); } 30% { transform: scale(1); } 45% { transform: scale(1.3); } 60% { transform: scale(1); } }
@keyframes emo-raise { 0% { transform: translateY(0); } 30% { transform: translateY(-22px) rotate(-8deg); } 55% { transform: translateY(-14px) rotate(8deg); } 100% { transform: translateY(0); } }
@keyframes emo-flex { 0%,100% { transform: scale(1); } 30% { transform: scale(1.4) rotate(-10deg); } 60% { transform: scale(1.2) rotate(6deg); } }
@keyframes emo-spin { 0% { transform: rotate(-360deg) scale(.2); } 100% { transform: rotate(0) scale(1); } }
@keyframes emo-sway { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes emo-thumb { 0% { transform: scale(1) rotate(0); } 40% { transform: scale(1.4) rotate(-18deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes emo-wave { 0%,100% { transform: skewY(0) scale(1); } 25% { transform: skewY(-10deg) scale(1.15); } 75% { transform: skewY(10deg) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .msg.bigemo.play, .rxc.pop { animation: none !important; } }

/* Cargando con el logo */
.ldr { display: grid; place-items: center; gap: 14px; padding: 64px 20px; }
.ldr-ring { position: relative; width: 86px; height: 86px; display: grid; place-items: center; }
.ldr-spin { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; border: 4px solid #E4DFDA; border-top-color: #C80000; border-right-color: #C80000; -webkit-animation: ldr-spin 1s linear infinite; animation: ldr-spin 1s linear infinite; will-change: transform; }
@-webkit-keyframes ldr-spin { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } }
@keyframes ldr-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ldr-ring img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; animation: ldr-pulse 1.6s ease-in-out infinite; }
@keyframes ldr-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.92); opacity: .8; } }
.ldr-t { color: var(--muted); font-weight: 600; font-size: 15px; letter-spacing: .2px; }
.ldr-d i { font-style: normal; animation: ldr-blink 1.2s infinite both; }
.ldr-d i:nth-child(2) { animation-delay: .2s; } .ldr-d i:nth-child(3) { animation-delay: .4s; }
@keyframes ldr-blink { 0%,80%,100% { opacity: .15; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ldr-ring img { animation: none; } .ldr-spin { -webkit-animation-duration: 2.4s; animation-duration: 2.4s; } }
/* Mis invitados (plegable) */
.invhead { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.invhead small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.invhead .chev { font-size: 26px; line-height: 1; color: var(--muted); transition: transform .2s; }
.invhead.open .chev { transform: rotate(90deg); }
.invbody { border-top: 1px solid var(--line, #eee); }
.invr { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line, #eee); align-items: flex-start; }
.invr:last-child { border-bottom: 0; }
.invm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.invt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.invt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invm small { color: var(--muted); }
.invbtn { align-self: flex-start; margin-top: 6px; }
.invok { padding: 12px 16px; color: #15803d; font-weight: 600; font-size: 14px; }
/* Reenviar: solo el logo de WhatsApp */
.pact { display: flex; justify-content: flex-end; }
.pshare.icon { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; border: 0; background: transparent; color: #1DA851; transition: background .15s; }
.pshare.icon:hover, .pshare.icon:active { background: rgba(37,211,102,.16); }

/* En vivo */
.livebox { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 6px; }
.livetag { align-self: flex-start; background: #D40000; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .8px; padding: 4px 10px; border-radius: 14px; display: inline-flex; align-items: center; gap: 6px; }
.livetag.end { background: #6b6b6b; letter-spacing: .3px; }
.livetag .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; margin-right: 6px; animation: live-blink 1.2s ease-in-out infinite; }
@keyframes live-blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.liveframe { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.liveframe iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.livego { text-align: center; text-decoration: none; }

.livehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.liveon { color: var(--muted); font-weight: 700; font-size: 13px; }
.livecm { max-height: 170px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; font-size: 14px; padding: 2px 2px; }
.livecm:empty { display: none; }
.lcm b { color: var(--brand); }
.liverx { display: flex; gap: 8px; justify-content: center; }
.lrx { background: #fff; border: 1px solid #e4dfda; border-radius: 22px; font-size: 22px; padding: 4px 12px; line-height: 1.2; cursor: pointer; }
.lrx:active { transform: scale(1.18); }
.liveform { display: flex; gap: 8px; align-items: center; }
.livein { flex: 1; min-width: 0; border: 1.5px solid #e4dfda; border-radius: 22px; padding: 9px 14px; font: inherit; font-size: 15px; background: #fff; }
.livesend { border-radius: 50%; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; }
.livefly { position: relative; height: 0; pointer-events: none; }
.lf { position: absolute; bottom: 10px; font-size: 28px; animation: lf-up 3s ease-out forwards; }
@keyframes lf-up { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-20px) scale(1.1); } 100% { transform: translateY(-230px) scale(1); opacity: 0; } }

/* v172: compartir en otras apps (botón redondo junto al de WhatsApp), Canal por semanas, vivo terminado */
.pact { display: flex; align-items: center; gap: 4px; }
.pshare.icon.gen { color: #3A3733; }
.pshare.icon.gen:hover, .pshare.icon.gen:active { background: rgba(58,55,51,.12); }
.pshare.icon.gen.busy { opacity: .5; pointer-events: none; animation: live-blink 1s ease-in-out infinite; }
.pshare.icon.gen.ready { background: #D40000; color: #fff; }
.feed [hidden] { display: none !important; }
.feed > .wkh { margin: 10px 0 4px; }
.livetag .dot.off { animation: none; background: #c9c4bc; }

/* v174 · ¡Gracias por compartir! */
.celeb{position:fixed;inset:0;z-index:99999;pointer-events:none;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:opacity .3s}
.celeb.out{opacity:0}
.celeb .cb{position:absolute;bottom:-60px;animation:cbup 3.4s ease-in forwards;will-change:transform}
@keyframes cbup{0%{transform:translateY(0) rotate(-8deg);opacity:1}50%{transform:translateY(-60vh) rotate(8deg)}100%{transform:translateY(-125vh) rotate(-6deg);opacity:.9}}
.celeb .cc{pointer-events:auto;background:#fff;color:#141214;border-radius:20px;padding:20px 22px;max-width:320px;width:calc(100% - 48px);text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.28);animation:ccin .35s cubic-bezier(.2,1.4,.4,1)}
@keyframes ccin{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}
.celeb .cct{font-weight:800;font-size:20px;line-height:1.2}.celeb .ccs{color:#6b645c;font-size:14px;margin-top:4px}
.celeb .ccq{font-weight:700;font-size:14px;margin-top:14px}.celeb .ccw{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:8px}
.celeb .ccb{border:1.5px solid var(--brand,#C80000);background:#fff;color:var(--brand,#C80000);font-weight:700;font-size:14px;padding:8px 14px;border-radius:999px}
.celeb .ccb:active{background:var(--brand,#C80000);color:#fff}.celeb .ccx{margin-top:10px;background:none;border:0;color:#6b645c;font-size:13px;text-decoration:underline}
/* v175 · ya reenviado */
.pshare.icon.done { background: #25D366; color: #fff; position: relative; }
.pshare.icon.done::after { content: '✓'; position: absolute; right: -2px; top: -2px; width: 16px; height: 16px; border-radius: 50%; background: #0b5d2a; color: #fff; font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; }
.shgo.again { background: #fff !important; color: #0b5d2a !important; border: 2px solid #25D366 !important; }
.shdirect { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

/* v176 · tarjeta «Preparando tu video» */
.pprep{position:fixed;left:14px;right:14px;bottom:calc(92px + var(--safe-b,0px));margin:0 auto;max-width:430px;z-index:99990;background:#fff;color:#141214;border-radius:20px;padding:14px 16px;display:flex;gap:14px;align-items:center;box-shadow:0 14px 44px rgba(0,0,0,.28);border:1px solid rgba(0,0,0,.06);animation:ppin .35s cubic-bezier(.2,1.2,.4,1);transition:opacity .3s,transform .3s}
.pprep.out{opacity:0;transform:translateY(14px)}
@keyframes ppin{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}
.pprep .pp-ic{position:relative;width:42px;height:42px;flex:none}
.pprep .pp-ring{position:absolute;inset:0;border-radius:50%;border:3.5px solid rgba(200,0,0,.14);border-top-color:var(--brand,#C80000);animation:ppspin .9s linear infinite}
.pprep .pp-ok{position:absolute;inset:0;border-radius:50%;background:#25D366;color:#fff;font-weight:800;font-size:22px;display:none;align-items:center;justify-content:center;animation:ccin .35s cubic-bezier(.2,1.4,.4,1)}
.pprep.ok .pp-ring{display:none}.pprep.ok .pp-ok{display:flex}
@keyframes ppspin{to{transform:rotate(360deg)}}
.pprep .pp-b{flex:1;min-width:0}
.pprep .pp-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.pprep .pp-t{font-weight:800;font-size:16px}.pprep .pp-p{font-weight:700;font-size:13px;color:var(--brand,#C80000);font-variant-numeric:tabular-nums}
.pprep .pp-bar{height:7px;border-radius:99px;background:#EEE8E1;overflow:hidden;margin:8px 0 6px}
.pprep .pp-bar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--brand,#C80000),#ff5a4d);transition:width .25s ease}
.pprep.ok .pp-bar i{background:#25D366}
.pprep.ind .pp-bar i{width:38%!important;animation:ppind 1.1s ease-in-out infinite}
@keyframes ppind{0%{margin-left:-38%}100%{margin-left:100%}}
.pprep .pp-s{font-size:12.5px;color:#6b645c;line-height:1.35}
.pprep .pp-a{display:flex;gap:10px;align-items:center;margin-top:10px}.pprep .pp-a:empty{display:none}
.pprep .pp-go{background:var(--brand,#C80000);color:#fff;font-weight:800;border-radius:99px;padding:10px 18px;border:0}
.pprep .pp-x{background:none;border:0;color:#6b645c;font-size:13px;text-decoration:underline}
@media (prefers-reduced-motion:reduce){.pprep .pp-ring,.pprep.ind .pp-bar i{animation-duration:2.4s}}

/* v177 · tarjeta de compartir más pequeña y sobria */
.pprep{padding:11px 14px;gap:12px;max-width:400px;border-radius:18px}
.pprep .pp-ic{width:34px;height:34px}.pprep .pp-ring{border-width:3px}.pprep .pp-ok{font-size:18px}
.pprep .pp-t{font-size:14.5px}.pprep .pp-bar{height:5px;margin:7px 0 5px}.pprep .pp-s{font-size:12px}
.pprep .pp-a{margin-top:8px;gap:12px}
.pprep .pp-go{white-space:nowrap;font-size:13.5px;font-weight:700;padding:8px 16px;min-height:0;line-height:1.2;box-shadow:none}
.pprep .pp-x{white-space:nowrap;font-size:12.5px;text-decoration:none;color:#8a8279}
/* botones de redes (publicación ya hecha en la página del candidato): mismo tamaño y estilo que el de WhatsApp */
.pshare.icon.net { background: #EEF1F4; margin-left: 0; }
.pshare.icon.net.facebook { color: #1877F2; } .pshare.icon.net.tiktok { color: #111; } .pshare.icon.net.youtube { color: #FF0000; } .pshare.icon.net.instagram { color: #E1306C; } .pshare.icon.net.x { color: #000; }
.pshare.icon.net:hover, .pshare.icon.net:active { background: #E1E6EB; }
.pshare.icon.net svg { width: 22px; height: 22px; }

/* tarjeta «Apoyar en…» con cuenta regresiva */
.nsh { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.nsh-bg { position: absolute; inset: 0; background: rgba(10,8,6,.55); opacity: 0; transition: opacity .25s; } .nsh.on .nsh-bg { opacity: 1; }
.nsh-card { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
.nsh.on .nsh-card { transform: none; }
.nsh-hd { display: flex; align-items: center; gap: 12px; } .nsh-hd b { display: block; font-size: 18px; } .nsh-hd small { color: #777; }
.nsh-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: #111; } .nsh-ic svg { width: 24px; height: 24px; }
.nsh-ic.instagram { background: linear-gradient(45deg,#F9A03F,#E1306C 55%,#833AB4); } .nsh-ic.youtube { background: #F00; } .nsh-ic.tiktok { background: #111; }
.nsh-cm { margin-top: 14px; background: #F4F1EC; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; } .nsh-cm small { color: #0b7a3b; font-weight: 700; } .nsh-cm small.mu { color: #888; font-weight: 500; }
.nsh-cm q { font-size: 16px; font-weight: 600; quotes: '“' '”'; }
.nsh-st { margin: 14px 0 4px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; } .nsh-st li { counter-increment: s; display: flex; align-items: center; gap: 10px; font-weight: 600; } .nsh-st li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: #D40000; color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.nsh-ct { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.nring { position: relative; width: 64px; height: 64px; flex: none; } .nring svg { width: 100%; height: 100%; transform: rotate(-90deg); } .nring circle { fill: none; stroke: #E8E3DB; stroke-width: 4; } .nring .pg { stroke: #D40000; stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; }
.nring.run .pg { stroke-dashoffset: 119.4; transition: stroke-dashoffset 5s linear; } .nring.done .pg { stroke: #1DA851; transition: none; stroke-dashoffset: 0; }
.nring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.nsh-tx { flex: 1; display: flex; flex-direction: column; gap: 8px; } .nsh-tx span { color: #666; font-size: 14px; } .nsh-go { width: 100%; }
.nsh-x { display: block; margin: 12px auto 0; background: none; border: 0; color: #888; font: inherit; padding: 8px 16px; }
.nback { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 80; background: #111; color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.nback > div { flex: 1 1 100%; } .nback b { display: block; } .nback small { color: #bbb; }
.nback button { font: inherit; font-weight: 700; border: 0; border-radius: 22px; padding: 9px 16px; } .nback .y { background: #1DA851; color: #fff; flex: 1; } .nback .n { background: #333; color: #ddd; }
.nsh-ic.facebook { background: #1877F2; } .nsh-ic.x { background: #000; }
.nsh-x.alt { color: #1877F2; font-weight: 600; margin-top: 6px; }

.updbar { position: fixed; left: 12px; right: 12px; bottom: calc(86px + var(--safe-b)); background: var(--ink); color: #fff; padding: 10px 10px 10px 16px; border-radius: 14px; display: flex; align-items: center; gap: 12px; z-index: 55; font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.updbar button { margin-left: auto; border: 0; border-radius: 99px; padding: 8px 16px; font: inherit; font-weight: 700; background: #fff; color: var(--ink); cursor: pointer; }

/* Sala: reacciones flotantes */
.salabar { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #fff; border-top: 1px solid var(--line); flex-shrink: 0; }
.salabar .cnt { font-size: 12px; color: var(--muted); margin-right: auto; font-variant-numeric: tabular-nums; }
.salabar .rb { border: 1px solid var(--line); background: #f6f4f1; border-radius: 20px; font-size: 20px; line-height: 1; padding: 6px 11px; cursor: pointer; }
.salabar .rb:active { transform: scale(1.25); }
.floatl { position: absolute; left: 0; right: 0; bottom: 100%; height: 260px; pointer-events: none; overflow: hidden; }
.floatl .fl { position: absolute; bottom: 0; font-size: 26px; animation: flup 2.6s ease-out forwards; }
@keyframes flup { 0% { opacity: 0; transform: translateY(0) scale(.6); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateY(-240px) scale(1.2); } }

/* v213: pulso en vivo y preguntas con votos */
.salabar .rb.lv { position: relative; font-size: 18px; }
.salabar .rb.lv .dot { display: none; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #d7191c; }
.salabar .rb.lv.new .dot { display: block; }
.slsheet .seg { display: flex; gap: 6px; } .slsheet .seg button { flex: 1; border: 1px solid var(--line); background: #f6f4f1; border-radius: 12px; padding: 9px; font-weight: 700; font: inherit; cursor: pointer; } .slsheet .seg button.on { background: var(--ink); color: #fff; }
.slbox { display: flex; flex-direction: column; gap: 10px; }
.slbox .ptag { font-size: 12px; font-weight: 700; color: var(--muted); } .slbox .pq { font-size: 18px; line-height: 1.25; }
.pbars { display: flex; flex-direction: column; gap: 8px; }
.pbar { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.pbar:disabled { cursor: default; } .pbar.on { border-color: var(--ink); }
.pbar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(215,25,28,.14); transition: width .5s; z-index: 0; }
.pbar .lb, .pbar .pc { position: relative; z-index: 1; } .pbar .pc { font-variant-numeric: tabular-nums; color: var(--muted); }
.qask { display: flex; flex-direction: column; gap: 8px; } .qask textarea { width: 100%; resize: none; font: inherit; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; }
.qi { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; } .qi.pin { border-color: #e0a100; background: #fff9e8; } .qi.done { opacity: .6; }
.qv { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; min-width: 46px; border: 1.5px solid var(--line); background: #f6f4f1; border-radius: 12px; padding: 6px 8px; font-size: 18px; cursor: pointer; font-family: inherit; } .qv b { font-size: 13px; font-variant-numeric: tabular-nums; } .qv.on { border-color: var(--ink); background: #ffe9e9; }
.qt { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* v215: aviso «este celular ya tiene cuenta» */
.acctbox { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #fff7e0; border: 1.5px solid #e0a100; color: #5a4300; font-size: 14px; line-height: 1.35; }
.acctbox b { font-size: 15px; color: #3d2d00; }

/* v220: barra de la sala más limpia (contador chico, Pulso y Preguntas con nombre, emojis dentro de un botón) */
.salabar { flex-wrap: nowrap; gap: 8px; padding: 8px 10px; }
.salabar .cnt { margin-right: 0; font-size: 13px; font-weight: 700; color: var(--ink); background: #f3f0ec; border-radius: 99px; padding: 6px 10px; white-space: nowrap; }
.salabar .sp { flex: 1; }
.salabar .lvb { position: relative; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; cursor: pointer; }
.salabar .lvb:active { transform: scale(.97); }
.salabar .lvb .dot { display: none; position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%; background: #d7191c; border: 2px solid #fff; }
.salabar .lvb.new { border-color: #d7191c; } .salabar .lvb.new .dot { display: block; }
.salabar .rb.tg { font-size: 20px; padding: 5px 10px; flex-shrink: 0; }
.salabar .rpop { position: absolute; right: 8px; bottom: calc(100% + 6px); display: flex; gap: 6px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; box-shadow: 0 6px 22px rgba(0,0,0,.18); z-index: 6; }
.salabar .rpop[hidden] { display: none; }
.salabar .rpop .rb { font-size: 26px; padding: 6px 10px; border: 0; background: transparent; }
@media (max-width: 360px) { .salabar .lvb { padding: 7px 9px; font-size: 12px; } }
/* v220: aviso de cédula para escribir al comando */
.cedlock { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px calc(14px + var(--safe-b)); background: #fff7e0; border-top: 1.5px solid #e0a100; }
.cedlock b { display: block; font-size: 15px; color: #3d2d00; } .cedlock small { color: #6b5200; }
.cedhero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.cedhero h2 { margin: 2px 0 0; } .cedhero p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); }
.cedic { width: 58px; height: 58px; border-radius: 50%; background: #0F0E0F; color: #e3b24a; display: flex; align-items: center; justify-content: center; }

/* v224: barra de preparacion de video */
.toast.slimbar{display:flex;align-items:center;gap:12px;pointer-events:auto}
.slimx{background:rgba(255,255,255,.18);color:inherit;border:0;border-radius:999px;padding:6px 12px;font:inherit;font-weight:700}

.vmeta { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.55); color: #fff; font: 600 11px/1 system-ui, sans-serif; padding: 4px 7px; border-radius: 10px; pointer-events: none; z-index: 2; }

.vring { cursor: pointer; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(#fff var(--p, 0%), rgba(255,255,255,.25) 0); display: grid; place-items: center; z-index: 3; }
.vring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: rgba(0,0,0,.7); }
.vring b { position: relative; color: #fff; font: 700 20px system-ui, sans-serif; }
.vring.spin b { opacity: .0; }
.modal .sheet .btn.picked { background: #C80000; border-color: #C80000; color: #fff; opacity: 1; transform: scale(.98); transition: transform .12s; }
.modal .sheet .btn.picked small { opacity: .9; }
.vring.spin { background: conic-gradient(#fff 22%, rgba(255,255,255,.25) 0); animation: vspin 1s linear infinite; }
@keyframes vspin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.vpost { position: absolute; inset: 0; background: #000; pointer-events: none; z-index: 1; }
.vpost img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 22px; line-height: 1; padding-left: 4px; box-sizing: border-box; }
.vsave { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; height: 46px; padding: 0 18px; border-radius: 23px; border: 1.5px solid rgba(255,255,255,.45); background: rgba(20,20,20,.85); color: #fff; font-size: 15px; font-weight: 700; z-index: 2; }
.vsave.ready { background: #C80000; border-color: #C80000; }

/* v247: circulito de carga al tocar un video del chat */
.vbox.vload .vplay { font-size: 0; }
.vbox.vload .vplay::after { content: ''; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: vspin .8s linear infinite; margin-left: -4px; }
@keyframes vspin { to { transform: rotate(360deg); } }

/* v262: tarjeta de instalar (sube despacio al centro) y pantalla de bienvenida de la primera visita */
.instveil { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,10,12,.5); animation: veilin .6s ease 2.2s both; }
.instcard { position: relative; width: 100%; max-width: 340px; background: #fff; color: #0F0E0F; border-radius: 22px; padding: 26px 22px 22px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.4); display: flex; flex-direction: column; align-items: center; gap: 8px; animation: cardup 1.5s cubic-bezier(.22,.8,.3,1) 2.2s both; }
.instcard .ic-logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.2); margin-bottom: 6px; }
.instcard b { font-size: 19px; line-height: 1.25; }
.instcard small { font-size: 14px; color: #555; line-height: 1.4; margin-bottom: 10px; }
.instcard .btn { width: 100%; }
.instcard .ib-x { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: #666; font-size: 20px; padding: 6px 8px; }
@keyframes cardup { from { transform: translateY(70vh); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes veilin { from { opacity: 0; } to { opacity: 1; } }
.splash { position: fixed; inset: 0; z-index: 90; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; transition: opacity .45s ease; }
.splash.out { opacity: 0; }
.splash .sp-logo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 28px rgba(0,0,0,.22); animation: spin1 1s ease both; }
.splash .sp-t { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: #777; margin-top: 18px; animation: spfade .8s ease .5s both; }
.splash .sp-n { font-size: 30px; font-weight: 800; color: #0F0E0F; animation: spfade .8s ease .8s both; }
.splash .sp-s { font-size: 16px; color: #555; animation: spfade .8s ease 1.1s both; }
@keyframes spin1 { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .instcard, .instveil, .splash * { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* v293: composer más limpio: + | caja con 🎙 dictar adentro | micrófono/enviar */
.composer .tawrap { flex: 1; min-width: 0; position: relative; display: flex; }
.composer .tawrap textarea { flex: 1; width: 100%; padding-right: 46px; }
.composer .dictm { position: absolute; right: 5px; bottom: 5px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: #2563eb; display: grid; place-items: center; }
.composer .dictm.on { background: #C80000; color: #fff; animation: dpulse 1.1s infinite; }
@keyframes dpulse { 50% { box-shadow: 0 0 0 7px rgba(200,0,0,.18); } }

/* v296: el botón ▶ de las notas de voz se salía de su lugar (chocaba con el .vplay de los videos) */
.vp .vplay { position: static; transform: none; left: auto; top: auto; width: 38px; height: 38px; padding: 0; font-size: inherit; background: #C80000; }
.vp.heard .vplay { background: #34b7f1; }

/* v296: menú «+» más pequeño y elegante: cuadrícula de 3 columnas con iconos chicos */
.plusmenu { display: grid; grid-template-columns: repeat(4, 64px); gap: 2px; min-width: 0; padding: 8px; border-radius: 18px; box-shadow: 0 6px 22px rgba(0,0,0,.18); }
.plusmenu .pm { flex-direction: column; justify-content: flex-start; gap: 5px; padding: 8px 2px 6px; font-size: 11.5px; font-weight: 600; line-height: 1.15; text-align: center; border-radius: 12px; }
.plusmenu .pm > span:last-child { display: block; max-width: 62px; }
.plusmenu .pmic { width: 38px; height: 38px; }
.plusmenu .pmic svg { width: 19px; height: 19px; }
.composer .dictm.busy { background: #2563eb; color: #fff; animation: dpulse 0.8s infinite; }

/* v301: pastilla que señala el micrófono del teclado del iPhone */
.kbguide { position: fixed; right: 14px; z-index: 95; display: flex; align-items: center; gap: 8px; background: #111; color: #fff; border-radius: 999px; padding: 8px 8px 8px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,.3); pointer-events: none; animation: kbgin .25s ease-out; }
.kbguide .kbg-a { width: 26px; height: 26px; border-radius: 50%; background: #C80000; display: grid; place-items: center; font-size: 15px; animation: kbgb 1s ease-in-out infinite; }
@keyframes kbgb { 50% { transform: translateY(4px); } }
@keyframes kbgin { from { opacity: 0; transform: translateY(6px); } }

/* v303: mensajes del comando: carbón (más cálido que el negro puro) con franja roja fina a la izquierda */
.msg.adm { background: #1b1b1b; border-left: 3px solid var(--brand, #C80000); padding-left: 10px; }

/* v304: videos del canal sin franjas negras: el cuadro mide como el video (máx. 68 % de la altura de la pantalla) y los lados quedan del color de la tarjeta */
.post .vbox.ar { width: min(100%, calc(68vh * var(--ar))); aspect-ratio: var(--ar); margin: 0 auto; background: transparent; border-radius: 14px; overflow: hidden; }
.post .vbox.ar video { width: 100%; height: 100%; max-height: none; object-fit: contain; background: transparent; }
.post .vbox.ar .vpost { background: transparent; }
.post .vbox.ar .vpost img { object-fit: contain; }

/* v305: los lados del video se rellenan con la portada difuminada (como Instagram): una imagen estática, sin carga extra */
.post .vbox.ar { overflow: visible; isolation: isolate; border-radius: 0; }
.post .vbox.ar::before { content: ''; position: absolute; top: -26px; bottom: -26px; left: -100vw; right: -100vw; z-index: -1; background: var(--bgimg, none) center / cover no-repeat; filter: blur(22px) brightness(.8); clip-path: inset(26px 0 26px 0); }   /* se recorta a la franja del video: no se derrama sobre el título */
.post .vbox.ar video, .post .vbox.ar .vpost, .post .vbox.ar .vpost img { border-radius: 14px; }

/* v306: albumes de fotos */
.msg .album { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: min(260px, 100%); margin: 2px 0 4px; border-radius: 10px; overflow: hidden; }
.msg .album .ac { position: relative; padding: 0; border: 0; background: #d9d2ca; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; display: block; }
.msg .album .ac img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg .album.n3 .ac:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.msg .album .more { position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.modal.albumv { padding: 0; background: rgba(0,0,0,.94); display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
.albumv .atop { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; color: #fff; font-weight: 600; z-index: 2; }
.albumv .aclose { background: rgba(255,255,255,.15); color: #fff; border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.albumv .atrack { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.albumv .atrack::-webkit-scrollbar { display: none; }
.albumv .aslide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.albumv .aslide img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* v308: avisos discretos, hoja de calidad y album con progreso */
.toast { background: rgba(30,30,32,.94); padding: 9px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; line-height: 1.35; box-shadow: 0 4px 18px rgba(0,0,0,.22); z-index: 60; max-width: 86%; animation: toastin .22s ease-out; transition: opacity .25s; }
.toast.out { opacity: 0; }
@keyframes toastin { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%); } }
.pqsheet { gap: 12px !important; }
.pqh { display: flex; align-items: center; justify-content: space-between; }
.pqh h2 { margin: 0; font-size: 18px; }
.pqx { background: #f0ece7; border: 0; width: 32px; height: 32px; border-radius: 50%; color: #555; font-size: 14px; cursor: pointer; }
.pqrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pq { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 12px; border-radius: 14px; border: 1.5px solid #e5dfd8; background: #faf8f5; color: #222; cursor: pointer; font: inherit; }
.pq b { font-size: 15px; }
.pq span { font-size: 12.5px; opacity: .75; }
.pq em { font-size: 12px; font-style: normal; opacity: .55; margin-top: 2px; }
.pq.on { border-color: var(--brand, #C80000); background: #fff4f3; box-shadow: 0 0 0 2px rgba(200,0,0,.12); }
.pqnote { margin: 0; font-size: 12.5px; color: #77706a; background: #f4f1ed; border-radius: 10px; padding: 8px 10px; }
.pqgo { width: 100%; justify-content: center; }
.msg .album { position: relative; }
.msg .album .ac.wait img { filter: brightness(.55); }
.msg .album .aring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.3) 0); display: grid; place-items: center; pointer-events: none; }
.msg .album .aring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: rgba(20,20,22,.78); }
.msg .album .aring b { position: relative; color: #fff; font-size: 13px; font-weight: 700; }
.msg .album .aerr { position: absolute; inset: 0; background: rgba(0,0,0,.6); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; }
.msg .album .aretry { background: #fff; color: #222; border: 0; border-radius: 99px; padding: 6px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.msg .album .awhy { font-size: 11px; opacity: .8; max-width: 90%; text-align: center; line-height: 1.25; }

/* v310: confeti en canvas y anillo de video quieto al llegar a 100 % */
.celeb .cfc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vring.spin { background: conic-gradient(#fff 100%, rgba(255,255,255,.25) 0); animation: vpulse 1.5s ease-in-out infinite; }
@keyframes vpulse { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }
.vring { transition: opacity .2s; }
.celeb .cc { position: relative; z-index: 2; }

/* v311: carrusel de fotos en el canal */
.pcw { position: relative; background: #000; }
.pcar { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
.pcar::-webkit-scrollbar { display: none; }
.pcar .pci { flex: 0 0 100%; width: 100%; max-height: 460px; min-height: 200px; object-fit: cover; scroll-snap-align: start; display: block; cursor: zoom-in; background: #1b1b1b; }
.pcw .pcn { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; font: 600 12px/1 system-ui, sans-serif; padding: 5px 9px; border-radius: 12px; pointer-events: none; }
.pcw .pcd { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 5px; justify-content: center; pointer-events: none; }
.pcw .pcd i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all .2s; }
.pcw .pcd i.on { background: #fff; width: 16px; border-radius: 4px; }
.post.bub .pcw { border-radius: 0; }

/* v312: el carrusel toma la medida de la primera foto; las distintas se ven completas sobre fondo borroso */
.pcar { aspect-ratio: 4 / 5; max-height: 460px; }
.pcs { flex: 0 0 100%; position: relative; overflow: hidden; scroll-snap-align: start; background: #111; }
.pcs .pcb { position: absolute; inset: -24px; background: var(--bg) center / cover; filter: blur(22px) brightness(.62); opacity: 0; transition: opacity .2s; }
.pcs.mis .pcb { opacity: 1; }
.pcar .pcs .pci { position: relative; flex: none; width: 100%; height: 100%; max-height: none; min-height: 0; object-fit: cover; scroll-snap-align: none; }
.pcar .pcs.mis .pci { object-fit: contain; }
.pcar .pcs .pci { background: transparent; }
.perk .ic .ring.big { width: 28px; height: 28px; border-width: 3px; border-color: rgba(200,0,0,.18); border-top-color: #C80000; }

/* v321: bienvenida de lider */
.lw { position: fixed; inset: 0; z-index: 60; background: linear-gradient(160deg, #C80000, #7a0000); display: flex; align-items: center; justify-content: center; padding: 24px; color: #fff; animation: lwin .35s ease; }
.lw-in { max-width: 420px; text-align: center; }
.lw-ic { font-size: 64px; line-height: 1; margin-bottom: 8px; }
.lw h1 { margin: 6px 0 10px; font-size: 28px; }
.lw-big { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.lw-s { opacity: .92; margin: 0 0 24px; }
.lw .btn { background: #fff; color: #C80000; border-color: #fff; width: 100%; }
@keyframes lwin { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* v328: Habla con el candidato */
.subback { flex: none; width: 44px; height: 44px; margin-left: -6px; border: 0; background: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: inherit; }
.mlist { padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; flex: 1; }
.mrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; background: #fff; border: 0; border-radius: 18px; box-shadow: 0 1px 0 #e4dfd9; min-height: 72px; cursor: pointer; font: inherit; color: inherit; }
.mrow-av { flex: none; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; }
.mrow-av.team { background: #0c0c0e; color: #d9a441; }
.mrow-t { flex: 1; min-width: 0; }
.mrow-n { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; }
.mrow-t small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: #4a4540; }
.mrow-b { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #cc0000; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.vchk { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #d9a441; color: #fff; flex: none; }
.vchk svg { stroke-width: 3; }
.vchk.sm { width: 16px; height: 16px; margin-left: 6px; vertical-align: middle; }
.mnote { margin: 0; padding: 4px 6px; font-size: 12px; line-height: 1.5; color: #6b665f; }
.cchips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 4px; }
.cchip { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid #d9d3cb; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: inherit; }
.msg.adm .nm.ai, .msg.ai .nm { color: #e8b04e; }
.cand-nudge { position: fixed; inset: 0; z-index: 70; background: rgba(12,12,14,.55); }
.cn-card { position: absolute; left: 16px; right: 16px; max-width: 480px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 12px; }
.cn-row { display: flex; gap: 12px; align-items: center; }
.cn-row img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.cn-row b { font-size: 16px; line-height: 1.3; display: block; }
.cn-row p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: #4a4540; }
.cn-btns { display: flex; gap: 8px; align-items: center; }
.cn-btns .btn { flex: 1; min-height: 46px; border-radius: 23px; }
.cn-later { min-height: 46px; padding: 0 16px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: #4a4540; }
.cn-tip { position: absolute; bottom: -9px; width: 18px; height: 18px; background: #fff; transform: rotate(45deg); }
.cn-row p b { display: inline; }

/* v351: grupos con candado */
.gitem .gav.lk { box-shadow: 0 0 0 2px var(--gold); }
.lockbar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; background: #FBF3E2; color: #6D4A00; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid #EBD9B2; flex: none; }

/* v352: imagen propia de cada grupo */
.gitem .gav.hasimg { position: relative; background: #fff; padding: 0; overflow: visible; }
.gitem .gav .gimg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.gitem .gav .gbadge { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; border: 2px solid #fff; }

/* v354: foto de perfil */
.myphoto .phcam { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 11px; display: grid; place-items: center; }

.msg .nm .nmph { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 6px; }

/* v356: círculo del autor a la izquierda de la burbuja */
.msg.hasav { margin-left: 42px; position: relative; max-width: calc(82% - 42px); }
.msg .mav { position: absolute; left: -42px; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; overflow: hidden; background: #888; }
.msg .mav.ph { background: #fff; padding: 0; }
.msg .mav img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* v367: tarjeta del autor */
.msg .mav.tap { cursor: pointer; }
.mcard { align-items: center; text-align: center; gap: 8px; }
.mcbig { width: 220px; height: 220px; max-width: 70vw; max-height: 70vw; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: #fff; font-size: 72px; font-weight: 700; margin: 4px auto; background: #888; }
.mcbig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mccity { color: #777; min-height: 18px; }
.mchint { font-size: 13px; color: #777; }
.mcemo { display: flex; gap: 10px; justify-content: center; margin: 6px 0; }
.mcb { font-size: 28px; background: #f3f3f3; border: 0; border-radius: 50%; width: 52px; height: 52px; cursor: pointer; }
.mcb:active { transform: scale(.9); }
.mcmsg { min-height: 20px; font-size: 14px; } .mcmsg.ok { color: #1a7f37; } .mcmsg.bad { color: #b3261e; }

.pmav { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; overflow: hidden; flex: none; }
.pmav.sm { width: 34px; height: 34px; font-size: 13px; margin-right: 8px; }
.pmav.ph { background: #fff; } .pmav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmwrap { position: relative; flex: none; } .pmlock { position: absolute; right: -4px; bottom: -4px; font-size: 12px; background: #6B3FA0; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid #fff; }
.pmnote { margin: 10px 14px 4px; padding: 8px 12px; border-radius: 12px; background: #F1E9FA; color: #4A2A78; font-size: 13px; }
.pmbar { background: #F1E9FA; color: #4A2A78; }
.seg button { position: relative; } .seg .ubadge { margin-left: 6px; }
.btn.danger { color: #b3261e; }
.pmwbox { background: #FFF4E0; border-left: 4px solid #E0A800; border-radius: 10px; padding: 10px 12px; margin: 8px 0; text-align: left; }
.pmwnota { margin-top: 6px; font-size: 14px; } .pmwic { font-size: 24px; width: 44px; text-align: center; }
.pmwitem { background: #FFF4E0; }
.dmbanner.nb { cursor: pointer; } .dmbanner.nb .pmav { margin: 0; } .dmbanner.nb small { display: block; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.txt b { font-weight: 800 } .txt i { font-style: italic } .txt s { opacity: .8 }

/* v380: recordatorio de Banners en la guía de avisos */
.avs-tip{display:flex;flex-direction:column;gap:4px;margin-top:12px;padding:11px 13px;border-radius:12px;background:#FFF4D6;border:1px solid #F2C94C;color:#4a3a00;font-size:.92rem;line-height:1.35}.avs-tip b{font-size:1rem}

/* v383 · recuadro de avisos que no llegan */
.silbar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 9000; background: #fff7d6; border: 1px solid #f0d36b; color: #4a3b00; border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); display: grid; gap: 10px; max-width: 520px; margin: 0 auto; }
.silbar b { display: block; font-size: 15px; } .silbar span { display: block; font-size: 13px; margin-top: 2px; }
.silbar .sb-btns { display: flex; gap: 8px; } .silbar .btn { padding: 8px 14px; }

/* v391: Compartir hacia Connect */
.shr .shr-t { width: 100%; border: 1px solid #E4DFDA; border-radius: 12px; padding: 10px 12px; font: inherit; resize: none; }
.shr .shr-f { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.shr .gitem.picked { outline: 2px solid #C80000; }

/* v400: aviso del comando como tarjeta */
.pmwcard { display: flex; gap: 12px; align-items: flex-start; width: calc(100% - 24px); margin: 10px 12px; padding: 12px 14px 12px 12px; border: 1px solid #F0D79A; border-left: 5px solid #E3A400; border-radius: 14px; background: #FFF6DC; text-align: left; font: inherit; color: var(--ink); box-shadow: 0 1px 4px rgba(120,80,0,.12); }
.pmwcard.seen { background: #F7F3EC; border-color: var(--line); border-left-color: #C9BFAE; box-shadow: none; }
.pmwc-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: inset 0 0 0 1.5px #E3A400; }
.pmwcard.seen .pmwc-ic { box-shadow: inset 0 0 0 1.5px #C9BFAE; filter: grayscale(.6); }
.pmwc-bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pmwc-hd { display: flex; align-items: center; gap: 8px; }
.pmwc-hd b { flex: 1; font-size: 15px; white-space: nowrap; }
.pmwc-hd small { color: #8A6A1F; font-size: 12px; white-space: nowrap; }
.pmwc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.pmwc-tx { font-size: 14px; line-height: 1.35; color: #3B3320; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pmwc-more { font-size: 12.5px; font-weight: 600; color: #9A6A00; }
.modal.pmw h3 { display: flex; align-items: center; gap: 10px; }
.modal.pmw .pmwbox { border-left: 4px solid #E3A400; background: #FFF6DC; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }

/* v402: Connect Web */
.webwrap { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.weblink { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 420px; width: 100%; }
.weblink h1 { font-size: 24px; margin: 0; text-align: center; }
.weblogo { height: 56px; }
.websteps { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.5; align-self: flex-start; }
.webqr { width: 232px; height: 232px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; }
.webqr svg { width: 100%; height: 100%; }
.webcode { font-size: 34px; font-weight: 800; letter-spacing: 6px; font-variant-numeric: tabular-nums; }
.webdev { display: flex; flex-direction: column; gap: 8px; }
.webrow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.webin { flex: 1 1 auto; width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 18px; letter-spacing: 3px; text-transform: uppercase; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.webscan { position: fixed; inset: 0; z-index: 400; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.webvid { width: min(92vw, 420px); aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 3px solid #fff; background: #111; }
.webscan-t { color: #fff; font-weight: 600; }

/* v403: Connect Web en pantalla ancha (solo computador vinculado, >= 900 px). El celular no cambia. */
body.isweb .cand-nudge { display: none !important; }
body.webwide { background: #0F0E0F; }
body.webwide #app { max-width: 1680px; box-shadow: 0 0 40px rgba(0,0,0,.4); }
body.webwide .main:not(.flush) { padding-left: max(14px, calc((100% - 720px) / 2)); padding-right: max(14px, calc((100% - 720px) / 2)); }
.main.split { display: grid; grid-template-columns: 380px minmax(0, 1fr); overflow: hidden; }
.split-side { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-right: 1px solid var(--line); background: #fff; }
.split-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; background: var(--bg); }
.split-empty { margin: auto; text-align: center; color: var(--muted); }
.split-pane .subhdr .ib[aria-label="Volver"] { display: none; }
.split-side .gitem.on { background: #F4EFE8; }

/* v404: herramientas del mensaje y emojis en el computador (mouse) */
@media (hover: hover) and (pointer: fine) {
  .msg.act { -webkit-user-select: text; user-select: text; position: relative; }
  .msg-dd { position: absolute; top: 3px; right: 4px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #5E5A57; font-size: 14px; line-height: 24px; cursor: pointer; opacity: 0; transition: opacity .12s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
  .msg:hover .msg-dd, .msg-dd:focus-visible { opacity: 1; }
  .msg-dd:hover { background: #fff; color: #000; }
}
.emobtn { flex: none; width: 40px; height: 40px; border: 0; background: none; font-size: 22px; cursor: pointer; border-radius: 50%; }
.emobtn:hover { background: rgba(0,0,0,.06); }
.emopop { position: fixed; z-index: 450; width: 320px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.22); overflow: hidden; }
.emotabs { display: flex; border-bottom: 1px solid var(--line); background: #FAF8F5; }
.emotabs button { flex: 1; padding: 8px 0; border: 0; background: none; font-size: 18px; cursor: pointer; border-bottom: 3px solid transparent; }
.emotabs button.on { border-bottom-color: var(--brand); background: #fff; }
.emogrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; max-height: 232px; overflow-y: auto; }
.emo { border: 0; background: none; font-size: 22px; padding: 4px 0; border-radius: 8px; cursor: pointer; }
.emo:hover { background: #F2EFEB; }
/* v404b: los tres puntos del chat privado quedan a la derecha del encabezado, como en la app */
.split-pane .subhdr.slim .grow { flex: 1 1 0; }
.split-pane .subhdr.slim .ib { width: 42px; height: 42px; font-size: 22px; }
.split-pane .subhdr.slim .ib:hover { background: #F2EFEB; }

/* v406: Connect Web (computador): la barra de abajo pasa a una cinta oscura a la izquierda, en todas las secciones; el chat se ensancha */
body.webwide #app { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
body.webwide #app > :not(.tabbar):not(.main) { grid-column: 1 / -1; }
body.webwide #app > .main { grid-column: 2; grid-row: 3; min-height: 0; }
body.webwide #app > .tabbar { grid-column: 1; grid-row: 3; flex-direction: column; justify-content: flex-start; background: #0F0E0F; border-top: 0; padding: 8px 0; overflow-y: auto; }
body.webwide .tabbar button { flex: none; width: 100%; min-height: 72px; color: #D9D2C8; font-size: 12px; }
body.webwide .tabbar button:hover { background: #1A1819; color: #fff; }
body.webwide .tabbar button.on { color: #fff; background: #1F1C1D; }
body.webwide .tabbar button.on::before { top: 0; bottom: 0; left: 0; right: auto; width: 4px; height: auto; border-radius: 0 3px 3px 0; }
body.webwide .tabbar .badge { top: 8px; left: calc(50% + 8px); }
.main.split { grid-template-columns: 344px minmax(0, 1fr); }
.lsbar { padding: 12px 14px 0; background: #fff; flex-shrink: 0; }
.lsin { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; background: #F2EFEB; color: var(--muted); border: 2px solid transparent; }
.lsin:focus-within { border-color: var(--brand); }
.lsq { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; outline: none; color: #1A1718; }
.lsres { background: #fff; }
.lssec { padding: 10px 14px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #F2EFEB; }
.lsr { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 10px 14px; font: inherit; cursor: pointer; }
.lsr:hover { background: #F7EFE0; }
.lsr b { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.lsr b em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); white-space: nowrap; }
.lsr span { display: block; font-size: 13px; color: #3F3A37; line-height: 1.35; margin-top: 2px; }
.lsr mark { background: #F6DD8F; color: #1A1718; border-radius: 2px; padding: 0 1px; }

/* v408: confirmación de «Conectar mi computador» más clara */
.webwarn { background: #FEF2F2; border: 1px solid #F5B5B5; color: #7A1010; border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4; margin: 8px 0; }
.webck { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 8px 0 12px; cursor: pointer; }
.webck input { width: 22px; height: 22px; flex: none; margin: 0; }
.sheet .btn:disabled { opacity: .45; cursor: not-allowed; }

/* v411 */
.invmsg { background: #F2EFEB; border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow-y: auto; }


/* v415: el aviso que baja dentro de la app (mensaje nuevo) se distingue del encabezado negro: granate profundo con borde dorado */
.dmbanner { background: linear-gradient(135deg, #7A1424, #4A0A14); color: #fff; border: 1.5px solid #E3B063; box-shadow: 0 10px 26px rgba(122,20,36,.55), 0 0 0 1px rgba(0,0,0,.25); }
.dmbanner b { color: #F4C97A; font-size: 15px; }
.dmbanner small, .dmbanner.nb small { color: #fff; opacity: .95; font-size: 13.5px; }
.dmbanner .dmb-ic { background: #C80000; }
.dmbanner.nb .pmav, .dmbanner .pmav { box-shadow: 0 0 0 2px #E3B063; }

/* v416: texto largo plegado con «Ver más» + ventana de lectura */
.more { display: block; background: none; border: 0; padding: 4px 0 0; color: #C80000; font-weight: 700; font-size: 14px; cursor: pointer; }
.sheet.rdr { display: flex; flex-direction: column; gap: 10px; max-height: 86dvh; }
.rdr-t { white-space: pre-wrap; word-break: break-word; overflow-y: auto; max-height: 56dvh; font-size: 15px; line-height: 1.5; padding: 2px 2px 6px; }

/* v421/v422: números rojos redondos (18 px) en la esquina de cada pestaña de Líderes */
.seg.lseg { margin-top: 8px; }
.seg.lseg button { white-space: nowrap; }
.seg.lseg .ubadge, .seg.lseg .abadge { position: absolute; top: -4px; right: 2px; margin: 0; min-width: 18px; width: auto; height: 18px; line-height: 18px; padding: 0 4px; border-radius: 9px; background: #C80000; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1.5px #fff; box-sizing: border-box; vertical-align: baseline; }

/* v423: fondo propio muy suave (iconos de comunicación en línea fina) en los chats y burbujas con ancho máximo en computador */
/* v447: el panel vacío de Connect Web ("Elige una conversación") usa el mismo fondo del chat */
.chatbox, .split-pane:has(> .split-empty) { background-color: #ECE7E0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260' fill='none' stroke='%23B8AA94' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' opacity='.38'%3E%3Cg transform='translate%2820,24%29'%3E%3Cpath d='M0 4 h30 a4 4 0 0 1 4 4 v16 a4 4 0 0 1 -4 4 H14 l-8 7 v-7 H0 a4 4 0 0 1 -4 -4 V8 a4 4 0 0 1 4 -4Z'/%3E%3C/g%3E%3Cg transform='translate%28150,22%29'%3E%3Cpath d='M16 38 C4 24 2 18 2 14 a14 14 0 0 1 28 0 c0 4 -2 10 -14 24Z'/%3E%3Ccircle cx='16' cy='14' r='5'/%3E%3C/g%3E%3Cg transform='translate%2890,110%29'%3E%3Cpath d='M2 2 V40'/%3E%3Cpath d='M2 4 H30 L24 14 L30 24 H2'/%3E%3C/g%3E%3Cg transform='translate%28200,126%29'%3E%3Crect x='0' y='4' width='32' height='24' rx='3'/%3E%3Cpath d='M0 8 l16 12 l16 -12'/%3E%3C/g%3E%3Cg transform='translate%2820,176%29'%3E%3Cpath d='M2 30 V14 M12 30 V4 M22 30 V18 M32 30 V10'/%3E%3C/g%3E%3Cg transform='translate%28140,204%29'%3E%3Ccircle cx='16' cy='16' r='14'/%3E%3Cpath d='M2 16 H30 M16 2 c-8 8 -8 20 0 28 M16 2 c8 8 8 20 0 28'/%3E%3C/g%3E%3C/svg%3E"); background-size: 180px 180px; }
@media (min-width: 900px) { .chatbox .msg { max-width: min(560px, 75%); } }

/* v424: Connect Web (computador) con letra y elementos más compactos, tipo WhatsApp Web; el celular no cambia */
body.webwide .chatbox .msg { font-size: 14.5px; padding: 6px 11px; }
body.webwide .msg .nm { font-size: 12.5px; }
body.webwide .msg .tm { font-size: 11px; }
body.webwide .gitem { padding: 10px 14px; gap: 12px; }
body.webwide .gitem .gav { width: 42px; height: 42px; }
body.webwide .gitem .meta b { font-size: 15px; font-weight: 600; }
body.webwide .gitem .meta span { font-size: 13px; }
body.webwide .seg button { min-height: 34px; font-size: 13.5px; font-weight: 600; }
body.webwide .subhdr b { font-size: 15px; font-weight: 600; }
body.webwide .subhdr small { font-size: 12px; }
body.webwide .mrow { min-height: 60px; padding: 10px 14px; }
body.webwide .mrow-av { width: 46px; height: 46px; }
body.webwide .mrow-n { font-size: 15px; }
body.webwide .mrow-t small { font-size: 12.5px; }

/* v425: un escalón más de compacto en Connect Web */
body.webwide .gitem .meta b { font-size: 14.5px; }
body.webwide .gitem .meta span { font-size: 12.5px; }
body.webwide .subhdr b { font-size: 14px; }
body.webwide .tabbar button { font-size: 11px; min-height: 64px; }

/* v426: barra superior y cinta más bajas en Connect Web */
body.webwide .hdr { padding-top: 5px; padding-bottom: 5px; }
body.webwide .havatar { width: 34px; height: 34px; }
body.webwide .hname b { font-size: 15px; }
body.webwide .hsub { font-size: 11.5px; }
body.webwide .vz-hdr { font-size: 13px; padding: 0 12px 0 10px; }
body.webwide .tkr { height: 26px; line-height: 26px; font-size: 13px; }
body.webwide .tkr-l { font-size: 10px; padding: 0 9px; }

/* v427: tus mensajes más marcados, fondo más fino y más aire entre líneas */
.chatbox .msg { line-height: 1.55; }

/* v429: Nuevo asunto */
.asbar{padding:6px 12px 0;background:var(--bg,#EFE8DF);display:flex}
.asbtn{display:inline-flex;gap:8px;align-items:center;border:1.5px dashed #C80000;color:#C80000;background:#fff;border-radius:16px;padding:4px 12px;font:inherit;font-weight:700;font-size:13px;cursor:pointer}
.asbtn.on{border-style:solid;background:#FFF1D6;border-color:#E6A93A;color:#7a4b00;cursor:default}.asbtn.on button{border:0;background:none;color:inherit;font:inherit;cursor:pointer;padding:0 2px}
.astag{align-self:center;margin:8px auto 2px;width:max-content;max-width:90%;border-radius:14px;padding:4px 12px;font-size:12.5px;font-weight:700;background:#FFF1D6;border:1.5px solid #E6A93A;color:#7a4b00;text-align:center}
.astag.t-denuncia{background:#FBE0DD;border-color:#B3261E;color:#8a1a14}.astag.t-ayuda{background:#DCEBFA;border-color:#3478C6;color:#1d4f86}.astag.t-pregunta,.astag.t-apoyo,.astag.t-evento{background:#EEE8DF;border-color:#bdb3a4;color:#4a4237}
.modal.asunto{background:rgba(15,14,15,.38);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);transition:background .16s ease}
.modal .sheet.asheet{position:relative;background:rgba(255,255,255,.83);backdrop-filter:blur(24px) saturate(145%);-webkit-backdrop-filter:blur(24px) saturate(145%);width:min(520px,calc(100% - 20px));gap:0;margin:0 10px calc(10px + var(--safe-b));padding:8px 14px 9px;max-height:88dvh;border:1px solid rgba(255,255,255,.75);border-radius:22px;box-shadow:0 14px 42px rgba(15,14,15,.22);animation:asheet-in .18s cubic-bezier(.2,.8,.2,1) both;outline:0;overflow:hidden}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.modal .sheet.asheet{background:rgba(255,255,255,.97)}}
.asgrab{flex:0 0 auto;width:36px;height:4px;border-radius:99px;background:#dcd8d3;margin:0 auto 10px}
.ashead{padding:0 4px 10px}.asheet .ast{display:block;font-size:18px;line-height:1.25;letter-spacing:-.015em}.asheet .asp{margin:3px 0 0;color:#7c7670;font-size:12px;line-height:1.35}
.aslist{overflow-y:auto;border-top:1px solid #ebe7e2}
.asop{display:flex;width:100%;min-height:59px;gap:11px;align-items:center;text-align:left;border:0;border-bottom:1px solid #eeeae5;background:transparent;border-radius:0;padding:7px 4px;font:inherit;color:#191817;cursor:pointer;touch-action:manipulation;transition:background .1s ease}
.asop:last-child{border-bottom:0}.asop:hover{background:rgba(255,255,255,.28)}.asop:active{background:rgba(238,234,229,.38)}
.asop .astxt{flex:1;min-width:0}.asop b{display:block;font-size:14.5px;line-height:1.2;font-weight:650}.asop small{display:block;margin-top:3px;font-weight:400;color:#807a74;font-size:11.5px;line-height:1.25}
.asic{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;font-size:18px;background:rgba(243,240,236,.76)}
.as-propuesta .asic{background:rgba(255,246,223,.82)}.as-ayuda .asic{background:rgba(237,244,250,.82)}.as-denuncia .asic{background:rgba(253,239,237,.82)}
.asarrow{flex:0 0 14px;color:#b1aba5;font-size:23px;font-weight:300;line-height:1;text-align:right}
.asop.mini{min-height:43px;padding-top:5px;padding-bottom:5px}.asop.mini .asic{width:29px;height:29px;flex-basis:29px;font-size:15px}.asop.mini b{font-size:13.5px;font-weight:600}
.asdivider{height:5px;background:rgba(247,244,241,.48);border-bottom:1px solid rgba(225,220,214,.72)}
.ascancel{flex:0 0 auto;width:100%;margin-top:5px;border:0;border-top:1px solid #ebe7e2;border-radius:0;background:transparent;color:#625d58;padding:10px 12px 7px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;touch-action:manipulation}
.ascancel:active{background:#f7f4f1}
.modal.asunto.closing{background:rgba(15,14,15,0);backdrop-filter:none;-webkit-backdrop-filter:none}.modal.asunto.closing .asheet{animation:asheet-out .14s ease both}
@keyframes asheet-in{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
@keyframes asheet-out{to{opacity:0;transform:translateY(18px) scale(.985)}}
@media(max-width:380px){.asheet{padding-left:11px;padding-right:11px}.asheet .ast{font-size:17px}.asop{min-height:55px;gap:9px}.asop.mini{min-height:41px}}
@media(prefers-reduced-motion:reduce){.asheet,.modal.asunto.closing .asheet{animation:none}.asop{transition:none}}

/* Menú de opciones del chat privado: mismo vidrio de Nuevo asunto */
.pmsheet{max-width:480px}.pmsheet .ashead{padding-bottom:11px}.pmsheet .ast{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pmop{min-height:52px;padding-top:7px;padding-bottom:7px}.pmop .asic{width:34px;height:34px;flex-basis:34px;font-size:18px}.pmop .astxt b{font-size:14.5px;font-weight:600}
.pmop.danger{color:#b3261e}.pmop.danger .asic{background:rgba(253,239,237,.76)}.pmop.danger:active{background:rgba(253,239,237,.42)}

/* v437 · invitación a cita dentro de Connect */
.aginv{position:fixed;left:12px;right:12px;top:calc(10px + env(safe-area-inset-top));max-width:460px;margin:0 auto;z-index:300;background:#0F0E0F;color:#fff;border-radius:20px;padding:14px 16px;box-shadow:0 12px 34px rgba(0,0,0,.45);border-left:6px solid #C80000;animation:aginv .45s cubic-bezier(.2,.9,.25,1) both}
@keyframes aginv{from{transform:translateY(-120%);opacity:0}to{transform:none;opacity:1}}
.aginv small{display:block;color:#F5B800;font-weight:800;letter-spacing:.05em;font-size:11px}.aginv b{display:block;font-size:18px;margin:3px 0}.aginv .ai-w,.aginv .ai-p{font-size:14px;opacity:.9;margin-top:2px}
.aginv .ai-b{display:flex;gap:8px;margin-top:12px}.aginv .ai-b .btn{flex:1;padding:11px}.aginv .ai-b .btn.ghost{background:#fff;color:#111}
@media (prefers-reduced-motion:reduce){.aginv{animation:none}}

.msg .tk.fail { display: inline-block; opacity: 1; letter-spacing: 0; font-size: 11px; font-weight: 700; color: #fff; background: #d32f2f; border: 0; border-radius: 999px; padding: 2px 9px; cursor: pointer; }

/* v452: ranking de líderes */
.rkhero { background: #111; color: #fff; border-radius: 18px; padding: 16px; display: grid; gap: 4px; }
.rkhero .rkk { color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .5px; }
.rkhero .rkn { font-size: 40px; font-weight: 800; line-height: 1.1; } .rkhero .rko { font-size: 14px; color: #ddd; }
.rkhero .rkf { font-size: 13.5px; margin-top: 4px; }
.rkrow { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.rkrow.me { background: #FBEFD2; border-color: #E8D29A; }
.rkp { width: 30px; text-align: center; font-size: 20px; font-weight: 800; }
.rkpt { text-align: right; } .rkpt b { font-size: 20px; }

.rkmini { display: flex; align-items: center; gap: 10px; width: 100%; background: #111; color: #fff; border: 0; border-radius: 16px; padding: 12px 14px; font: inherit; cursor: pointer; }
.rkmini .muted { color: #d6d0c8; } .rkmini .rkgo { color: var(--gold); font-weight: 700; }

/* v456: deslizar para responder */
.msg { position: relative; }
.msg.swp { transition: none; }
.msg.swp::before { content: '↩'; position: absolute; left: -38px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.25); text-align: center; line-height: 28px; font-size: 16px; opacity: var(--sa, 0); transform: scale(var(--sa, 0)); }
.msg { transition: transform .18s ease; }
.msg.swp { transition: none; }

/* v458: botón de sonido del video del Canal */
.vsnd { position: absolute; top: 8px; left: 8px; min-width: 42px; height: 42px; border-radius: 21px; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; line-height: 42px; padding: 0 10px; z-index: 2; }
.vsnd:active { background: rgba(0,0,0,.8); }

/* v460: videos del Canal estilo TikTok: sin controles encima */
.vbox.vtk video { cursor: pointer; }
.vsnd { font-size: 14px; font-weight: 600; }
.vprog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.28); z-index: 2; pointer-events: none; }
.vprog i { display: block; height: 100%; width: 0; background: #fff; }
.vflash { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 34px; line-height: 76px; text-align: center; opacity: 0; pointer-events: none; z-index: 2; }
.vflash.on { animation: vfl .6s ease-out; }
@keyframes vfl { 0% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.15); } }
.vbox.vpaused .vflash { opacity: 1; animation: none; transform: none; }

/* v463: Canal estilo TikTok — cada video/foto ocupa la pantalla; el deslizamiento se acomoda en la siguiente */
.main.tkmain { scroll-snap-type: y mandatory; overscroll-behavior-y: contain; }
.canal.tk .feed { gap: 0; padding: 0; }
.canal.tk .post.pv { height: var(--tkh, 100%); min-height: 420px; position: relative; background: #000; border-radius: 0; margin: 0; padding: 0; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; box-shadow: none; border: 0; }
.canal.tk .post:not(.pv) { scroll-snap-align: center; scroll-snap-stop: always; margin: 14px 10px; }
.canal.tk .post.pv .tkstage { position: absolute; inset: 0; }
.canal.tk .post.pv .tkstage > .vbox, .canal.tk .post.pv .tkstage > .pcw { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; aspect-ratio: auto; border-radius: 0; }
.canal.tk .post.pv .vbox.ar { width: 100%; aspect-ratio: auto; overflow: hidden; }
.canal.tk .post.pv .vbox.ar::before { top: 0; bottom: 0; left: 0; right: 0; clip-path: none; }
.canal.tk .post.pv .vbox video, .canal.tk .post.pv .vbox .vpost, .canal.tk .post.pv .vbox .vpost img { width: 100%; height: 100%; max-height: none; border-radius: 0; object-fit: contain; }
.canal.tk .post.pv .vbox.tall video, .canal.tk .post.pv .vbox.tall .vpost img { object-fit: cover; }
.canal.tk .post.pv .tkstage > .imgm { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.canal.tk .post.pv .pcw .pcar { height: 100%; }
.canal.tk .post.pv .pcw .pci { height: 100%; max-height: none; object-fit: contain; }
.tkov { position: absolute; left: 0; right: 64px; bottom: 70px; padding: 40px 14px 6px; color: #fff; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.62), rgba(0,0,0,0)); z-index: 3; }
.tkov .ttl { font-weight: 700; font-size: 16px; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.tkov .txt { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.6); margin-top: 3px; }
.tkov .content, .tkov .tags { color: #fff; }
.tkov .tkmore { pointer-events: auto; border: 0; background: none; color: #fff; font-weight: 700; padding: 4px 0; font-size: 13px; opacity: .9; }
.tkov .meta { font-size: 11px; opacity: .8; padding: 4px 0 0; color: #fff; }
.tkrail { position: absolute; right: 8px; bottom: 84px; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 4; }
.tkrail .vexpand { position: static; }
.tkrail .pact { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; }
.tkrail .pshare.icon { width: 44px; height: 44px; background: rgba(0,0,0,.5); color: #fff; }
.tkrail .pshare.icon:not(.net):not(.gen) { background: #25D366; color: #fff; }
.tkrail .pshare.icon.net { background: rgba(0,0,0,.5); }
.tkbg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; display: flex; align-items: flex-end; }
.tksheet { background: #fff; color: #222; width: 100%; max-height: 70vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 14px 16px 24px; }
.tksheet .tkgr { display: block; width: 44px; height: 5px; border-radius: 3px; background: #ccc; border: 0; margin: 0 auto 12px; }
.tksheet .ttl { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.tksheet .txt { font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.tksheet .tkdt { font-size: 12px; color: #777; margin-top: 12px; }

/* v464: video limpio — sin franja oscura; solo título y «ver más»; la cinta del EVENTO flota y se esconde al deslizar */
.tkov { padding: 0 14px; bottom: 66px; background: none; text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.6); }
.tkov .ttl ~ .txt, .tkov .meta, .tkov .tags { display: none; }
.tkov .tkmore { text-shadow: inherit; padding: 4px 0 2px; }
.tkrail { bottom: 80px; }
/* v465: en el Canal estilo TikTok no hay cinta de avisos (queda en las demás pestañas) */
body.tkcanal .tkr { display: none; }

/* v467: texto que no se mezcla; sonido a la esquina; botones y título más abajo (el área ya termina en la barra) */
.tkov { right: 66px; bottom: 12px; }
.tkov .ttl { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tkrail { bottom: 20px; gap: 12px; }
.canal.tk .post.pv .vsnd { left: auto; right: 10px; top: 10px; z-index: 5; }
/* con franja negra abajo: título arriba de los botones, los botones en fila, todo en el negro */
.post.pv.tkblk .tkov { right: 12px; bottom: 66px; }
.post.pv.tkblk .tkov .ttl { -webkit-line-clamp: 3; font-size: 15px; }
.post.pv.tkblk .tkrail { flex-direction: row; left: 12px; right: 12px; bottom: 12px; justify-content: flex-end; align-items: center; }
.post.pv.tkblk .tkrail .pact { flex-direction: row; }

/* v468: título sutil (como TikTok), botones chicos y translúcidos, sin ▶ al cargar */
.tkov { padding: 0; right: 60px; bottom: 10px; left: 12px; background: none; pointer-events: none; }
.tkcap { display: flex; align-items: baseline; gap: 5px; color: rgba(255,255,255,.93); font-size: 12.5px; font-weight: 500; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 8px rgba(0,0,0,.5); pointer-events: auto; cursor: pointer; }
.tkcap .tkcl { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkcap .tkmo { flex: none; font-style: normal; font-weight: 700; opacity: .95; }
.post.pv.tkblk .tkov { right: 12px; bottom: 58px; }
.post.pv.tkblk .tkcap { font-size: 13px; }
.post.pv.tkblk .tkcap .tkcl { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tkrail { right: 8px; bottom: 36px; gap: 10px; }
.post.pv.tkblk .tkrail { bottom: 10px; }
.tkrail .pshare.icon, .tkrail .vexpand { width: 38px; height: 38px; background: rgba(0,0,0,.34); }
.tkrail .pshare.icon:not(.net):not(.gen) { background: rgba(31,168,85,.9); }
.tkrail .pshare.icon svg, .tkrail .vexpand svg { width: 20px; height: 20px; }
.vbox.vtk .vplay { display: none; }

/* v469: barrita de progreso arrastrable (zona de toque amplia, sin cambiar lo delgada que se ve) */
.canal.tk .post.pv .vprog { pointer-events: auto; touch-action: none; height: 3px; bottom: 0; }
.canal.tk .post.pv .vprog::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; bottom: -4px; }
.canal.tk .post.pv .vprog.seek { height: 7px; }

/* v469: título estilo «propuesta 2»: nombre del canal chico + título en 2 líneas, «más» al final */
.tkcap { display: block; }
.tkcap .tkcn { font-size: 12px; font-weight: 700; opacity: .95; margin-bottom: 2px; }
.tkcap .tkcl { display: block; white-space: normal; overflow: hidden; max-height: 2.6em; text-overflow: clip; }
.post.pv.tkblk .tkcap .tkcl { display: block; -webkit-line-clamp: unset; max-height: 2.6em; }
.canal.tk .post.pv .vexpand { display: none; }
.canal.tk .post.pv .vprog::before { top: -12px; }
.tkov { bottom: 18px; }
.post.pv.tkblk .tkov { bottom: 66px; }
.post.pv.tkblk .tkrail { bottom: 20px; }
.tkrail { bottom: 40px; }

/* v471: mientras llega la portada del video no se ve negro puro: fondo oscuro con el logo tenue */
.canal.tk .post.pv .vbox .vpost { background: #0F0E0F url(/img/icon-192.png) center 42% / 72px no-repeat; }

/* v476: corazones y comentarios del Canal */
.pshare.icon.soc { width: auto; min-width: 38px; padding: 0 10px; gap: 6px; color: #3A3733; border-radius: 19px; background: transparent; flex-direction: row; }
.pshare.icon.soc .n { font-size: 13px; font-weight: 700; }
.pshare.icon.soc:hover, .pshare.icon.soc:active { background: rgba(58,55,51,.1); }
.pshare.icon.soc.heart.on { color: #E8233F; }
.pshare.icon.soc.pop svg { animation: socpop .35s ease-out; }
@keyframes socpop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.tkrail .pshare.icon.soc { width: 52px; height: auto; padding: 0; gap: 2px; flex-direction: column; background: transparent !important; color: #fff; border-radius: 0; }
.tkrail .pshare.icon.soc svg { box-sizing: content-box; width: 24px; height: 24px; padding: 10px; background: rgba(0,0,0,.5); border-radius: 50%; color: #fff; }
.tkrail .pshare.icon.soc.heart.on svg { color: #FF3B5C; }
.tkrail .pshare.icon.soc .n { font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); line-height: 1; }
.cmbg { align-items: flex-end; }
.cmsheet { display: flex; flex-direction: column; max-height: 78vh; padding-bottom: 10px; }
.cmttl { font-weight: 800; font-size: 16px; margin: 2px 0 8px; }
.cmlist { flex: 1; overflow-y: auto; min-height: 140px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cmempty { color: #777; text-align: center; padding: 34px 10px; font-size: 14px; }
.cmrow { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; }
.cmrow.rp { margin-left: 40px; }
.cmav { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #DDD6CF; color: #555; font-weight: 800; display: flex; align-items: center; justify-content: center; text-transform: uppercase; font-size: 14px; }
.cmav.team { background: #C80000; color: #fff; }
.cmbody { flex: 1; min-width: 0; }
.cmwho { font-size: 12.5px; color: #777; } .cmwho b { color: #444; font-weight: 700; }
.cmteam { font-style: normal; color: #1D9BF0; font-weight: 800; margin-left: 3px; font-size: 12px; }
.cmtxt { font-size: 15px; line-height: 1.35; color: #222; margin-top: 2px; word-break: break-word; }
.cmacts { display: flex; gap: 16px; margin-top: 4px; } .cmacts button { background: none; border: 0; padding: 2px 0; font: inherit; font-size: 12.5px; color: #8a8580; cursor: pointer; }
.cmh { flex: none; background: none; border: 0; padding: 4px 2px; color: #8a8580; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 30px; font: inherit; cursor: pointer; }
.cmh.on { color: #E8233F; } .cmh .n { font-size: 11.5px; min-height: 14px; }
.cmcomp { display: flex; gap: 8px; align-items: center; padding-top: 8px; border-top: 1px solid #eee; }
.cmin { flex: 1; min-width: 0; border: 0; background: #F1EEEA; border-radius: 20px; padding: 11px 14px; font: inherit; font-size: 16px; color: #222; }
.cmsend { background: none; border: 0; color: #C80000; font-weight: 800; font-size: 15px; padding: 8px 4px; cursor: pointer; } .cmsend:disabled { opacity: .4; }
.cmreply { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #777; padding: 6px 4px 0; } .cmreply button { background: none; border: 0; font-size: 14px; color: #777; padding: 2px 8px; }
.cmnote { text-align: center; color: #777; font-size: 13px; padding: 12px 6px 4px; border-top: 1px solid #eee; }

/* v478: Reenviar, tarjeta en el chat y medalla en comentarios */
.pshare.icon.soc.fwd.done { background: transparent; color: #1DA851; }
.pshare.icon.soc.fwd.done::after { display: none; }
.tkrail .pshare.icon.soc.fwd.done svg { color: #25D366; }
.fwdsheet { max-height: 82vh; padding-bottom: 18px; }
.fwdhead { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.fwdhead img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.fwdhead div { display: flex; flex-direction: column; min-width: 0; } .fwdhead b { font-size: 18px; } .fwdhead span { font-size: 13px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fwdsec { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #888; margin: 14px 0 8px; }
.fwdsearch { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 12px; padding: 10px 12px; font-size: 15px; background: #F6F6F6; margin-bottom: 6px; }
.fwdlist { max-height: 30vh; overflow: auto; display: flex; flex-direction: column; }
.fwdrow { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border: 0; background: transparent; text-align: left; border-radius: 10px; width: 100%; color: inherit; }
.fwdrow.on { background: #FDECEC; }
.fwdrow .mav, .fwdrow .fwdg { flex: none; width: 38px; height: 38px; }
.fwdg { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #EEE; font-size: 18px; }
.fwdn { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fwdn b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fwdn i { font-style: normal; font-size: 12px; color: #888; }
.fwdck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ccc; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; flex: none; }
.fwdrow.on .fwdck { background: #D40000; border-color: #D40000; }
.fwdfoot { display: flex; gap: 8px; margin-top: 8px; } .fwdnote { flex: 1; min-width: 0; border: 1px solid #ddd; border-radius: 12px; padding: 10px 12px; font-size: 15px; } .fwdsend { white-space: nowrap; }
.fwdopts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fwdopt { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: transparent; font-size: 12px; color: #333; padding: 4px 0; }
.fwdic { width: 52px; height: 52px; border-radius: 50%; background: #EEF1F4; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: #333; }
.fwdopt.wa .fwdic { background: #25D366; color: #fff; }
.fwdopt.net .fwdic { color: #222; } .fwdopt.net.facebook .fwdic { color: #1877F2; } .fwdopt.net.youtube .fwdic { color: #F00; } .fwdopt.net.instagram .fwdic { color: #E1306C; }
.fwdcard { display: flex; gap: 10px; align-items: stretch; width: 100%; max-width: 280px; border: 0; padding: 0; margin: 0 0 4px; text-align: left; background: rgba(0,0,0,.06); border-radius: 12px; overflow: hidden; color: inherit; }
.fwdcard img, .fwdcard .fwdph { width: 78px; min-height: 78px; object-fit: cover; flex: none; background: #222; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.fwdcard.gone { opacity: .75; } .fwdcard.gone .fwdph { background: #bbb; }
.fwdinfo { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 8px 0; min-width: 0; justify-content: center; }
.fwdinfo i { font-style: normal; font-size: 11px; color: #888; font-weight: 700; } .fwdinfo b { font-size: 14px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fwdinfo span { font-size: 12px; color: #666; }
.cmmedal { font-size: 13px; margin-left: 3px; line-height: 1; }
.fwdfoot .fwdsend { width: auto; flex: none; padding: 0 18px; margin: 0; } .fwdfoot .fwdnote { flex: 1 1 0; width: 0; }

/* v480: Reenviar con color propio (verde) para que se note entre corazón y comentarios */
.pshare.icon.soc.fwd { color: #16A34A; }
.pshare.icon.soc.fwd .n { color: #16A34A; font-weight: 800; }
.tkrail .pshare.icon.soc.fwd svg { background: linear-gradient(135deg, #25D366, #128C4A); color: #fff; box-shadow: 0 2px 8px rgba(37,211,102,.45); }
.tkrail .pshare.icon.soc.fwd .n { color: #fff; font-weight: 800; }
.tkrail .pshare.icon.soc.fwd.done svg { background: linear-gradient(135deg, #25D366, #128C4A); color: #fff; }
.pshare.icon.soc.fwd.done { color: #16A34A; }

/* v481: Reenviar sin círculo: solo la flecha verde */
.tkrail .pshare.icon.soc.fwd svg, .tkrail .pshare.icon.soc.fwd.done svg { background: none; box-shadow: none; padding: 6px; width: 30px; height: 30px; color: #2FE07A; filter: drop-shadow(0 1px 3px rgba(0,0,0,.75)); }
.tkrail .pshare.icon.soc.fwd .n { color: #fff; }

/* v483: foto de quien comenta */
.cmav.ph { padding: 0; overflow: hidden; background: #ddd; } .cmav.ph img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }

/* v489: Connect Web (computador): el Canal como TikTok web — tarjeta con la forma del video, botones afuera a la derecha, flechas ▲▼ y teclado */
.tknav { display: none; }
body.webwide .main.tkmain, body.webwide .main.tkmain:not(.flush) { padding: 0; }   /* v490: se conserva el fondo beige del chat y del resto de la web */
body.webwide .canal.tk .post.pv { --cw: min(520px, calc(var(--tkh, 700px) * .5625)); width: calc(var(--cw) + 144px); max-width: 100%; margin: 0 auto; background: transparent; overflow: visible; }
body.webwide .canal.tk .post.pv .tkstage { inset: 8px 72px; border-radius: 16px; overflow: hidden; background: #000; }
body.webwide .canal.tk, body.webwide .canal.tk .feed { background: transparent; }
body.webwide .canal.tk .post.pv .tkrail, body.webwide .canal.tk .post.pv .tkrail .pact { color: #2B2725; }
body.webwide .canal.tk .post.pv .tkrail * { text-shadow: none; }
body.webwide .canal.tk .post.pv .vbox video, body.webwide .canal.tk .post.pv .vbox .vpost img, body.webwide .canal.tk .post.pv .vbox.tall video, body.webwide .canal.tk .post.pv .vbox.tall .vpost img { object-fit: contain; }
body.webwide .canal.tk .post.pv .tkov { left: 86px; right: 86px; bottom: 22px; }
body.webwide .canal.tk .post.pv .vsnd { right: 84px; top: 18px; }
body.webwide .canal.tk .post.pv .tkrail { right: 17px; bottom: 28px; }
body.webwide .canal.tk .post.pv .tknav { display: flex; flex-direction: column; gap: 10px; position: absolute; right: 17px; top: 50%; transform: translateY(-50%); z-index: 6; }
body.webwide .canal.tk .post.pv .tknav button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.08); color: #2B2725; font-size: 14px; cursor: pointer; }
body.webwide .canal.tk .post.pv .tknav button:hover { background: rgba(0,0,0,.16); }
body.webwide .canal.tk .post.pv .tkcap { cursor: pointer; }
body.webwide .canal.tk .post.pv .tkrail .n, body.webwide .canal.tk .post.pv .tkrail .pshare .n { color: #2B2725 !important; text-shadow: none !important; }
body.webwide .canal.tk .post.pv .tkrail .pshare.icon.soc.fwd .n { color: #16A34A !important; }
body.webwide .canal.tk .post.pv .tkrail .pshare.icon.soc.fwd svg { filter: none; }

.modal.mm { background: rgba(0,0,0,.12); }
.mmenu { background: #fff; border-radius: 14px; padding: 6px 0; box-shadow: 0 10px 30px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 0; }
.mmenu .mmprev { padding: 10px 16px 8px; display: flex; flex-direction: column; gap: 2px; }
.mmenu .rxrow { padding: 4px 10px 10px; }
.mmrow { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: none; border: none; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; width: 100%; }
.mmrow:hover, .mmrow:active { background: #f3f3f3; }
.mmrow svg { width: 18px; height: 18px; flex: none; opacity: .72; }
.mmrow .mmlabel { flex: 1; }
.mmrow .mmtime { font-size: 12px; color: #8a8a8a; white-space: nowrap; }
.mmrow.danger { color: var(--brand); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
.mmrow.danger svg { opacity: 1; color: var(--brand); }
/* v528: menu estilo whatsapp - pildora de reacciones separada, fondo mas oscuro, editar sube al composer */
.modal.mm { background: rgba(0,0,0,.35); }
.mmwrap { display: flex; flex-direction: column; gap: 8px; }
.rxpill { justify-content: center; background: #fff; border-radius: 999px; padding: 6px 8px; box-shadow: 0 6px 20px rgba(0,0,0,.22); align-self: flex-start; gap: 2px; }
.rxpill button { flex: 0 0 auto !important; width: 36px; height: 36px; font-size: 20px !important; padding: 0 !important; }
/* v529/v530: bloquear la seleccion nativa de texto (burbuja y menu), como WhatsApp */
.msg { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.modal.mm, .modal.mm * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

.vbox .vfill { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: blur(22px) brightness(.8);
  z-index: 0; pointer-events: none; display: none; }
.canal.tk .post.pv .vbox .vfill { display: block; }
.vbox video { position: relative; z-index: 1; }
.vbox .vpost { z-index: 2; }
.canal.tk .post.pv .vbox .vpost { background: transparent; }
.canal.tk .post.pv .vbox:not(.tall) video {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: auto; height: auto; max-width: 100%; max-height: 100%;
}

/* Audio wow: burbuja adaptable y respuesta táctil */
.msg .vp {
  box-sizing: border-box;
  width: min(310px, calc(100vw - 118px));
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
}
.msg .vp .vplay {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.16);
  transition: transform .12s ease, box-shadow .12s ease;
}
.msg .vp .vplay:active {
  transform: scale(.9);
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
}
.msg .vp .vmid {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.msg .vp .vwave {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}
.msg .vp .vwave i {
  flex: 1 1 0;
  min-width: 1px;
  max-width: 4px;
  border-radius: 4px;
  transform-origin: center;
  transition: opacity .12s ease, transform .12s ease;
}
.msg .vp .vwave i.on {
  opacity: 1;
  transform: scaleY(1.06);
}
.msg .vp .vtime {
  display: block;
  margin-top: 1px;
  padding-left: 2px;
  font-size: 12px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.msg .vp .vspd {
  position: static;
  inset: auto;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(128,128,128,.14);
  box-shadow: inset 0 0 0 1px rgba(128,128,128,.12);
  font-size: 12px;
  font-weight: 800;
}
.recbar.preparing {
  min-height: 50px;
  color: var(--muted);
  font-size: 13px;
}
.recbar .send.busy,
.recbar .pausebtn:disabled {
  opacity: .6;
  transform: scale(.9);
  pointer-events: none;
}
.send.pressed {
  transform: scale(.88);
  opacity: .82;
}
.recbar button,
.msg .vp button {
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 380px) {
  .msg .vp {
    width: min(280px, calc(100vw - 112px));
    grid-template-columns: 40px minmax(0, 1fr) 31px;
    gap: 7px;
  }
  .msg .vp .vplay {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .msg .vp .vspd {
    width: 31px;
    height: 31px;
    min-width: 31px;
    font-size: 11px;
  }
}

/* Canal: retorno sutil a lo nuevo */
.canal.tk { transition: opacity .16s ease; }
.canal.tk.tkjump { opacity: .25; }
.tkhome {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 24;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(18,18,18,.48);
  color: rgba(255,255,255,.96);
  box-shadow: 0 3px 14px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 400 24px/1 system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.tkhome.show {
  opacity: .82;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.tkhome:active {
  transform: translateX(-50%) scale(.9);
  opacity: 1;
}
.tkhome-n {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  box-sizing: border-box;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #C80000;
  color: #fff;
  border: 2px solid rgba(0,0,0,.35);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.tkhome-n:empty { display: none; }
.tkend {
  position: fixed;
  left: 50%;
  bottom: calc(130px + env(safe-area-inset-bottom, 0px));
  z-index: 23;
  padding: 6px 11px;
  border-radius: 14px;
  background: rgba(18,18,18,.38);
  color: rgba(255,255,255,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}
.tkend.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .canal.tk, .tkhome, .tkend { transition: none; }
}

/* Evento elegante */
.modal.aviso{padding:16px;background:rgba(20,16,12,.20);-webkit-backdrop-filter:blur(12px) saturate(115%);backdrop-filter:blur(12px) saturate(115%)}
.modal.aviso .aviso-sheet{width:min(100%,520px);max-height:78dvh;overflow:auto;box-sizing:border-box;padding:14px 20px 18px;color:#211E1B;background:rgba(255,255,255,.76);border:1px solid rgba(255,255,255,.64);border-radius:24px;box-shadow:0 24px 70px rgba(0,0,0,.20);-webkit-backdrop-filter:blur(24px) saturate(145%);backdrop-filter:blur(24px) saturate(145%)}
.modal.aviso .tkr-list p:first-child{border-top:0}
.modal.aviso .tkr-list p{margin:0;padding:16px 2px;background:transparent;border-radius:0;border-top:1px solid rgba(45,38,30,.09);color:#332E29;font-size:15px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}
.modal.aviso .aviso-close{width:100%;margin-top:12px;border:1px solid rgba(45,38,30,.11);border-radius:13px;background:rgba(255,255,255,.34)}
@media(max-width:600px){.modal.aviso{align-items:flex-end;padding:12px}.modal.aviso .aviso-sheet{max-height:82dvh}}
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.modal.aviso{background:rgba(20,16,12,.48)}.modal.aviso .aviso-sheet{background:rgba(255,255,255,.96)}}

/* Ventanas de perfil translucidas */
.modal.profileglass{padding:16px;background:rgba(20,16,12,.20);-webkit-backdrop-filter:blur(12px) saturate(115%);backdrop-filter:blur(12px) saturate(115%)}
.modal.profileglass .sheet.profile-sheet{width:min(520px,calc(100% - 4px));max-height:88dvh;margin:0 2px calc(10px + var(--safe-b));padding:22px 20px calc(18px + var(--safe-b));gap:14px;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;color:#211E1B;background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.68);border-radius:24px;box-shadow:0 24px 70px rgba(0,0,0,.20);-webkit-backdrop-filter:blur(24px) saturate(145%);backdrop-filter:blur(24px) saturate(145%);animation:asheet-in .18s cubic-bezier(.2,.8,.2,1) both}
.modal.profileglass .profile-sheet h2{letter-spacing:-.02em}
.modal.profileglass .profile-sheet .btn.ghost{justify-content:center;background:rgba(255,255,255,.32);border:1px solid rgba(45,38,30,.11);border-radius:14px}
.modal.profileglass .profile-sheet input,.modal.profileglass .profile-sheet .webin{background:rgba(255,255,255,.62)}
.modal.profileglass .profile-sheet hr{border-color:rgba(45,38,30,.10)}
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.modal.profileglass{background:rgba(20,16,12,.48)}.modal.profileglass .sheet.profile-sheet{background:rgba(255,255,255,.97)}}
@media(max-width:600px){.modal.profileglass{padding:12px}.modal.profileglass .sheet.profile-sheet{max-height:88dvh}}
@media(prefers-reduced-motion:reduce){.modal.profileglass .sheet.profile-sheet{animation:none}}
/* Canal: expansion integrada completa */
.tkov .tkcap.tkopen{display:block;max-height:44dvh;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:11px 13px 12px;margin:0 0 2px;border:1px solid rgba(255,255,255,.10);border-radius:14px;background:linear-gradient(180deg,rgba(20,20,20,.38),rgba(10,10,10,.58))!important;-webkit-backdrop-filter:blur(20px) saturate(120%);backdrop-filter:blur(20px) saturate(120%);box-shadow:0 8px 28px rgba(0,0,0,.22);cursor:default;text-shadow:0 1px 3px rgba(0,0,0,.65);scrollbar-width:thin}
.tkov .tkcap.tkopen .tkcn{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px;font-size:12px}
.tkov .tkcap.tkopen .tkless{position:static;flex:none;margin:0;padding:2px 0 2px 10px;border:0;background:transparent!important;color:rgba(255,255,255,.82);box-shadow:none;font-size:12px;font-weight:600;min-height:0;line-height:1.4}
.tkov .tkcap.tkopen .tags{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 9px}
.tkov .tkcap.tkopen .ttl{display:block;-webkit-line-clamp:unset;overflow:visible;margin:0 0 7px;color:#fff;font-size:16px;font-weight:700;line-height:1.35;letter-spacing:0}
.tkov .tkcap.tkopen .txt{display:block;-webkit-line-clamp:unset;overflow:visible;margin:0;color:rgba(255,255,255,.95);font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.tkov .tkcap.tkopen .tkdt{display:block;margin-top:10px;color:rgba(255,255,255,.58);font-size:11px}
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.tkov .tkcap.tkopen{background:rgba(12,12,12,.96)!important}}
