/* 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 .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; 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: #FBE3E3; border-radius: 16px 4px 16px 16px; }
.msg.adm { background: var(--ink); color: #fff; }
.msg.adm .tm { color: #BDB6AE; }
.msg.adm .nm { color: var(--gold); }
.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; }

.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: inherit; text-decoration: underline; word-break: break-all; }
.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; }
.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); }
.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; }
.tkr-list p { margin: 8px 0; padding: 10px 12px; background: rgba(128,128,128,.12); border-radius: 10px; }

/* 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); } }
