/* Hoi · mensajería cercana */
:root{
  --text:#1F1D2B; --ink:#1F1D2B; --ink2:#2E2B3D; --bg:#F7F4F0; --card:#FFFFFF; --soft:#F5F1ED; --line:#ECE6E1;
  --muted:#6B6776; --faint:#9A96A3; --acc:#FF4D6D; --acc-soft:#FFE5EA;
  --on:#22C55E; --away:#F5A524; --busy:#EF4444; --off:#C9BABD;
  --safe-top:env(safe-area-inset-top,0px); --safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font-family:'Plus Jakarta Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:default}
a{color:#C91F4B}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid #FF4D6D;outline-offset:2px}
#app{height:100%;max-width:560px;margin:0 auto;display:flex;flex-direction:column;background:var(--bg);position:relative;overflow:hidden}
@media (min-width:600px){body{background:#EFE9E3}#app{box-shadow:0 0 0 1px var(--line),0 20px 60px rgba(31,29,43,.12)}}

/* ---------- logo ---------- */
.logo{display:flex;align-items:center;gap:8px}.logo b{font-weight:800;font-size:22px;letter-spacing:-.02em}

/* ---------- entrar ---------- */
.auth{flex:1;overflow:auto;background:var(--ink);color:#fff;padding:calc(var(--safe-top) + 48px) 24px 32px;display:flex;flex-direction:column;gap:18px}
.auth .logo b{font-size:34px}
.auth h1{margin:6px 0 0;font-size:30px;line-height:1.15;letter-spacing:-.02em}
.auth p{margin:0;color:#CFCAD6;line-height:1.5}
.auth form{display:flex;flex-direction:column;gap:12px;margin-top:6px}
.auth label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#CFCAD6}
.auth input{height:50px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#fff;padding:0 16px;font-size:16px}
.auth input:focus{outline:none;border-color:var(--acc)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 20px;border-radius:16px;border:0;font-weight:700;font-size:15px;background:var(--soft);color:var(--text)}
.btn.acc{background:var(--acc);color:#fff}
.btn.dark{background:var(--ink);color:#fff}
.btn.full{width:100%}
.btn.ghost{background:transparent;border:1px solid var(--line)}
.btn.danger{background:#FDECEC;color:#B42318}
.link{background:none;border:0;color:#FFC4CF;font-weight:600;padding:8px 0;text-align:left}
.msg{border-radius:12px;padding:10px 12px;font-size:14px;background:rgba(255,255,255,.08)}
.msg.err{background:#5A1E25;color:#FFD3D3}.msg.ok{background:#173D2A;color:#BDF2D0}

/* ---------- cabecera de contactos ---------- */
.top{background:var(--ink);color:#fff;padding:calc(var(--safe-top) + 16px) 18px 18px;border-radius:0 0 28px 28px;display:flex;flex-direction:column;gap:14px;flex-shrink:0}
.toprow{display:flex;align-items:center;justify-content:space-between}
.tbtns{display:flex;gap:8px}
.ib{width:44px;height:44px;border-radius:22px;border:0;background:rgba(255,255,255,.1);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative}
.ib.light{background:none;color:var(--text)}
.stpill{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:4px 10px;font-size:12.5px;font-weight:600}
.stpill i{width:8px;height:8px;border-radius:4px}
.st-online{background:rgba(34,197,94,.16);color:#86EFAC}.st-online i{background:var(--on)}
.st-away{background:rgba(245,165,36,.16);color:#FCD58A}.st-away i{background:var(--away)}
.st-busy{background:rgba(239,68,68,.16);color:#FCA5A5}.st-busy i{background:var(--busy)}
.st-invisible{background:rgba(255,255,255,.1);color:#E3D6D9}.st-invisible i{background:var(--off)}
.search{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.08);border-radius:14px;padding:0 14px;height:44px;color:#CFCAD6}
.search input{flex:1;border:0;background:transparent;color:#fff;font-size:15px;outline:none;min-width:0}
.search input::placeholder{color:#A29EAB}

/* ---------- avatares ---------- */
.av{position:relative;flex-shrink:0;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.av.s46{width:46px;height:46px;font-size:16px}.av.s44{width:44px;height:44px;font-size:15px}.av.s60{width:60px;height:60px;font-size:22px}.av.s84{width:84px;height:84px;font-size:28px}
.av .dot{position:absolute;right:-1px;bottom:-1px;width:14px;height:14px;border-radius:7px;box-shadow:0 0 0 3px var(--card)}
.top .av .dot{box-shadow:0 0 0 3px var(--ink)}
.dot.online{background:var(--on)}.dot.away{background:var(--away)}.dot.busy{background:var(--busy)}.dot.off{background:var(--off)}
.av.ring{box-shadow:0 0 0 3px var(--ink),0 0 0 6px var(--ringc,var(--on))}

/* ---------- listas ---------- */
.body{flex:1;overflow-y:auto;padding:16px 14px 20px;display:flex;flex-direction:column;gap:6px;-webkit-overflow-scrolling:touch}
.sec{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:10px 6px 2px}
.sec:first-child{padding-top:2px}
.row{display:flex;align-items:center;gap:12px;padding:10px;border-radius:16px;background:var(--card);border:0;width:100%;text-align:left;color:var(--text);box-shadow:0 1px 2px rgba(31,29,43,.05)}
.row.off{background:rgba(255,255,255,.6);box-shadow:none}
.row.off .rt b{color:var(--muted)}
.rt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rt b{font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt span{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt span.typing{color:#16A34A;font-weight:600}
.badge{min-width:22px;height:22px;border-radius:11px;background:var(--acc);color:#fff;font-weight:800;font-size:12px;display:flex;align-items:center;justify-content:center;padding:0 6px;flex-shrink:0}
.when{font-size:11.5px;color:var(--faint);flex-shrink:0;align-self:flex-start;margin-top:4px}
.empty{text-align:center;padding:40px 18px;color:var(--muted);display:flex;flex-direction:column;gap:12px;align-items:center}
.empty b{color:var(--text);font-size:17px}
.empty p{margin:0;line-height:1.5;font-size:14.5px}

/* ---------- menú inferior ---------- */
.nav{height:calc(70px + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:var(--card);display:flex;justify-content:space-around;align-items:center;box-shadow:0 -1px 0 var(--line);flex-shrink:0}
.nav button{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:none;color:var(--faint);font-size:11px;font-weight:600;min-width:72px;min-height:54px;justify-content:center;position:relative}
.nav button[aria-current="page"]{color:var(--text);font-weight:700}
.nav .nb{position:absolute;top:2px;right:14px;min-width:18px;height:18px;border-radius:9px;background:var(--busy);color:#fff;font-size:10.5px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 4px}

/* ---------- chat ---------- */
.chead{background:var(--card);padding:calc(var(--safe-top) + 10px) 10px 10px;display:flex;align-items:center;gap:10px;box-shadow:0 1px 0 var(--line);flex-shrink:0}
.chead .rt b{font-size:16px}
.chead .rt span.on{color:#16A34A;font-weight:600}
.msgs{flex:1;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:6px;-webkit-overflow-scrolling:touch}
.day{align-self:center;font-size:12px;color:var(--faint);font-weight:600;padding:8px 10px 2px}
.evt{align-self:center;display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);background:#F7EDEA;border-radius:999px;padding:6px 12px}
.evt.buzz{color:#C91F4B;font-weight:700;background:var(--acc-soft);border:1px solid #FFC4CF}
.bub{max-width:80%;border-radius:18px;padding:9px 13px;font-size:15px;line-height:1.4;word-wrap:break-word;white-space:pre-wrap;position:relative}
.bub small{display:block;font-size:11px;margin-top:3px;color:var(--faint)}
.bub.them{align-self:flex-start;background:var(--card);border-bottom-left-radius:6px;box-shadow:0 1px 2px rgba(31,29,43,.06)}
.bub.me{align-self:flex-end;background:var(--ink);color:#fff;border-bottom-right-radius:6px}
.bub.me small{color:#CFCAD6;text-align:right}
.bub .who{display:block;font-size:12px;font-weight:700;margin-bottom:2px}
.bub.pending{opacity:.6}
.typing-row{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;padding:4px 2px}
.dots{display:flex;gap:3px;background:var(--card);border-radius:12px;padding:9px 12px;box-shadow:0 1px 2px rgba(31,29,43,.06)}
.dots i{width:6px;height:6px;border-radius:3px;background:#9A96A3;animation:tdot 1.2s infinite}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}
@keyframes tdot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.compose{background:var(--card);padding:10px 12px calc(12px + var(--safe-bottom));display:flex;flex-direction:column;gap:10px;box-shadow:0 -1px 0 var(--line);flex-shrink:0}
.tools{display:flex;gap:8px}
.tool{display:flex;align-items:center;gap:6px;border:0;background:var(--soft);color:var(--text);border-radius:999px;padding:0 14px;height:36px;font-weight:600;font-size:13px}
.tool.acc{background:var(--acc);color:#fff;font-weight:700}
.send{display:flex;align-items:flex-end;gap:10px}
.send textarea{flex:1;border:0;background:var(--soft);border-radius:22px;min-height:46px;max-height:120px;padding:12px 16px;font-size:15px;resize:none;outline:none;line-height:1.35}
.send .go{width:46px;height:46px;border-radius:23px;border:0;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.emos{display:grid;grid-template-columns:repeat(7,1fr);max-height:216px;overflow-y:auto;gap:6px;padding:4px 0}
.emos button{border:0;background:var(--soft);border-radius:12px;height:42px;display:flex;align-items:center;justify-content:center;padding:0}
.emo{display:inline-block;width:1.35em;height:1.35em;vertical-align:-.3em}

/* ---------- hoi ---------- */
@keyframes bzshake{0%,100%{transform:translate(0,0) rotate(0)}10%{transform:translate(-8px,2px) rotate(-1deg)}20%{transform:translate(7px,-3px) rotate(1deg)}30%{transform:translate(-7px,3px) rotate(-.8deg)}40%{transform:translate(6px,-2px) rotate(.8deg)}50%{transform:translate(-4px,1px)}60%{transform:translate(3px,-1px)}75%{transform:translate(-1px,0)}}
#app.shake{animation:bzshake .8s ease-in-out}
@media (prefers-reduced-motion:reduce){#app.shake{animation:none}.dots i{animation:none}}

/* ---------- hojas ---------- */
.sheetbg{position:absolute;inset:0;background:rgba(31,29,43,.45);display:flex;align-items:flex-end;z-index:40;animation:fade .15s}
.sheet{background:var(--card);width:100%;border-radius:24px 24px 0 0;padding:18px 18px calc(22px + var(--safe-bottom));max-height:88%;overflow-y:auto;display:flex;flex-direction:column;gap:12px;animation:up .2s ease-out}
.sheet h2{margin:0;font-size:20px;letter-spacing:-.01em}
.sheet p{margin:0;color:var(--muted);line-height:1.5;font-size:14.5px}
.sheet label.f{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--muted)}
.sheet input[type=text],.sheet input[type=email]{height:48px;border-radius:14px;border:1px solid var(--line);background:var(--bg);padding:0 14px;font-size:16px;color:var(--text)}
.sheet input:focus{outline:none;border-color:#FF4D6D}
.grab{width:40px;height:5px;border-radius:3px;background:var(--line);align-self:center;margin-bottom:2px}
.opts{display:flex;flex-direction:column;gap:6px}
.opt{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:var(--card);border-radius:14px;padding:12px 14px;text-align:left;font-weight:600;min-height:52px}
.opt[aria-pressed="true"]{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--ink)}
.opt i{width:12px;height:12px;border-radius:6px}
.code{font-size:34px;font-weight:800;letter-spacing:.18em;text-align:center;background:var(--bg);border-radius:16px;padding:14px;font-variant-numeric:tabular-nums}
.check{display:flex;align-items:center;gap:12px;padding:8px 4px;font-weight:600}
.check input{width:22px;height:22px;accent-color:var(--text)}
@keyframes up{from{transform:translateY(30px);opacity:.5}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}

/* ---------- avisos ---------- */
.toasts{position:fixed;left:50%;top:calc(var(--safe-top) + 12px);transform:translateX(-50%);width:calc(100% - 24px);max-width:520px;display:flex;flex-direction:column;gap:8px;z-index:90;pointer-events:none}
.toast{pointer-events:auto;display:flex;align-items:center;gap:10px;background:var(--card);border-radius:16px;padding:10px 14px;box-shadow:0 10px 30px rgba(31,29,43,.2);font-size:14px;animation:up .2s ease-out;border:0;text-align:left;color:var(--text);width:100%}
.toast b{display:block}
.toast.buzz{background:var(--ink);color:#fff}
.spin{width:22px;height:22px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--text);animation:rot 1s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}

/* v2 */
.emos button svg{width:28px;height:28px}
.emo{width:1.35em;height:1.35em;vertical-align:-.3em;display:inline-block}
.bub.big{background:none!important;box-shadow:none!important;padding:2px 4px}
.bub.big .emo{width:52px;height:52px;vertical-align:middle}
.bub.big small{color:var(--faint)}
.av img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.avedit{position:relative;border:0;background:none;padding:0;border-radius:50%;cursor:pointer}
.avcam{position:absolute;right:-2px;bottom:-2px;width:30px;height:30px;border-radius:15px;background:var(--acc);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px var(--card)}
.row.req{box-shadow:0 0 0 2px #FFC4CF}
.ib.ok{background:var(--acc);color:#fff}
.ib.no{background:var(--soft);color:var(--text)}
.qrbox{display:flex;align-items:center;gap:14px;background:var(--bg);border-radius:16px;padding:12px}
.qrbox .qr{width:120px;height:120px;flex-shrink:0;border-radius:10px}
.qrbox span{font-size:13px;color:var(--muted);line-height:1.4}
.scanov{position:fixed;inset:0;z-index:90;background:#0E0D1C;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px}
.scanov video{width:min(86vw,380px);aspect-ratio:1;object-fit:cover;border-radius:24px;background:#000}
.scanframe{position:absolute;width:min(60vw,260px);aspect-ratio:1;border:3px solid #fff;border-radius:22px;top:50%;left:50%;transform:translate(-50%,calc(-50% - 40px));pointer-events:none;box-shadow:0 0 0 2px rgba(255,107,87,.6)}
.scanov p{color:#fff;font-weight:600;margin:0}
.scanov .btn{max-width:380px}

/* =========================================================
   v3 · aire de mensajería instantánea
   ========================================================= */
:root{--bg:#FFFFFF;--wall:#FBF0EC;--sep:#EFEAE6}
html,body,#app{background:var(--card)}
/* cabecera clara, título grande */
.top{background:var(--card);color:var(--text);border-radius:0;padding:calc(var(--safe-top) + 12px) 16px 10px;gap:10px}
.top h1{margin:0;font-size:30px;font-weight:800;letter-spacing:-.03em}
.top .ib{background:var(--soft);color:var(--text);width:40px;height:40px}
.tbtns{align-items:center}
.meav{border:0;background:none;padding:0;margin-left:2px;border-radius:50%}
.av.s36{width:36px;height:36px;font-size:13px}.av.s40{width:40px;height:40px;font-size:14px}.av.s48{width:48px;height:48px;font-size:17px}.av.s54{width:54px;height:54px;font-size:19px}.av.s56{width:56px;height:56px;font-size:20px}
.av.s36 .dot{width:11px;height:11px;box-shadow:0 0 0 2px var(--card)}
.top .av .dot{box-shadow:0 0 0 2px var(--card)}
.av.grp{background:linear-gradient(135deg,#FF8A4D,#FF4D6D)}
.search{background:var(--soft);color:var(--faint);height:40px;border-radius:12px}
.search input{color:var(--text)}
.search input::placeholder{color:var(--faint)}
.body{padding:4px 0 16px;gap:0;background:var(--card)}
.sec{padding:16px 16px 6px}
/* tira de conectados */
.strip{display:flex;gap:14px;overflow-x:auto;padding:6px 16px 12px;scrollbar-width:none;border-bottom:1px solid var(--sep);margin-bottom:4px}
.strip::-webkit-scrollbar{display:none}
.strip button{border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:6px;width:62px;flex-shrink:0;color:var(--text);font-size:12px;font-weight:600}
.strip .av{box-shadow:0 0 0 2px var(--card),0 0 0 4px #FFC4CF}
.strip span:last-child{max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.strip .av .dot{width:15px;height:15px}
/* filas planas */
.list{display:flex;flex-direction:column}
.crow{display:flex;align-items:center;gap:12px;border:0;background:var(--card);width:100%;text-align:left;padding:8px 16px;color:var(--text);position:relative;min-height:72px}
.crow:active{background:var(--soft)}
.crow .ct{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;align-self:stretch;justify-content:center;border-bottom:1px solid var(--sep);padding:6px 0}
.list .crow:last-child .ct{border-bottom:0}
.l1,.l2{display:flex;align-items:center;gap:8px;min-width:0}
.l1 b{flex:1;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
.l1 time{font-size:12px;color:var(--faint);flex-shrink:0}
.pv{flex:1;font-size:14px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:3px}
.pv .emo{width:1.2em;height:1.2em}
.pv.typing{color:var(--acc);font-weight:600}
.crow.un .l1 time{color:var(--acc);font-weight:700}
.crow.un .pv{color:var(--text);font-weight:600}
.crow.off .l1 b{color:var(--muted)}
.crow.off .av{opacity:.75}
.badge{min-width:20px;height:20px;border-radius:10px;font-size:11.5px}
.row{box-shadow:none;border-radius:14px}
.row.req{margin:0 12px 6px;width:calc(100% - 24px);box-shadow:0 0 0 1.5px #FFC4CF}
.row.off{margin:0 12px;width:calc(100% - 24px);background:var(--soft)}
.tk{display:inline-flex;color:var(--faint);flex-shrink:0}
.tk.read{color:#3D8BFD}
/* menú inferior */
.nav{height:calc(62px + var(--safe-bottom));box-shadow:0 -1px 0 var(--sep)}
.nav button{gap:3px;font-size:11px;color:var(--faint)}
.nav button[aria-current="page"]{color:var(--acc)}
.nav .ni{position:relative;display:flex;width:56px;height:30px;align-items:center;justify-content:center;border-radius:15px}
.nav button[aria-current="page"] .ni{background:var(--acc-soft)}
.nav .nb{top:-4px;right:6px;box-shadow:0 0 0 2px var(--card);background:var(--acc)}
/* conversación */
.chead{padding:calc(var(--safe-top) + 6px) 4px 6px;gap:8px;box-shadow:0 1px 0 var(--sep)}
.chead .ib.light{width:42px;height:42px}
.chead .rt{gap:0}
.chead .rt b{font-size:16px}
.chead .rt span{font-size:12.5px}
.chead .rt span.on{color:var(--acc);font-weight:600}
.knockb{color:var(--acc)!important}
.msgs{background-color:var(--wall);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23F2DDD5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 20h18v12H21l-5 4v-4h-2z'/%3E%3Ccircle cx='86' cy='26' r='7'/%3E%3Cpath d='M83 25h.01M89 25h.01M83.5 28.5c1.5 1.3 3.5 1.3 5 0'/%3E%3Cpath d='M30 84l3-6 3 6-6-2.5h6z'/%3E%3Cpath d='M78 80c0-3 4-4 5-1 1-3 5-2 5 1 0 3-5 6-5 6s-5-3-5-6z'/%3E%3Cpath d='M56 54h10M61 49v10'/%3E%3Cpath d='M100 98l6 6M106 98l-6 6'/%3E%3C/svg%3E");padding:10px 10px 12px;gap:2px}
.day{padding:10px 0 6px}
.day span{background:var(--card);color:var(--muted);font-size:12px;font-weight:600;padding:5px 12px;border-radius:10px;box-shadow:0 1px 1px rgba(31,29,43,.06)}
.evt{margin:6px 0;background:var(--card);box-shadow:0 1px 1px rgba(31,29,43,.06)}
.evt.buzz{background:var(--acc-soft);border:0;color:#C91F4B}
.bub{max-width:78%;padding:7px 10px 7px 12px;border-radius:18px;font-size:15.5px;line-height:1.35;box-shadow:0 1px 1px rgba(31,29,43,.07)}
.bub.first{margin-top:6px}
.bub.them{background:var(--card);border-radius:6px 18px 18px 6px}
.bub.them.first{border-top-left-radius:18px}
.bub.them.last{border-bottom-left-radius:4px}
.bub.them.first.last{border-radius:18px 18px 18px 4px}
.bub.me{background:var(--acc);color:#fff;border-radius:18px 6px 6px 18px}
.bub.me.first{border-top-right-radius:18px}
.bub.me.last{border-bottom-right-radius:4px}
.bub.me.first.last{border-radius:18px 18px 4px 18px}
.bub .meta{float:right;display:inline-flex;align-items:center;gap:3px;font-size:11px;margin:8px 0 -3px 10px;color:var(--faint);line-height:1}
.bub.me .meta,.bub.me .tk{color:rgba(255,255,255,.75)}
.bub.me .tk.read{color:#BFE3FF}
.bub.big{box-shadow:none}
.bub.big .meta{float:none;display:flex;justify-content:flex-end;margin:2px 0 0;background:rgba(255,255,255,.85);padding:3px 6px;border-radius:8px;color:var(--muted)}
.bub.big.me .meta,.bub.big.me .tk{color:var(--muted)}
.typing-b{padding:0;background:none!important;box-shadow:none}
.typing-b .dots{box-shadow:0 1px 1px rgba(31,29,43,.07);border-radius:18px 18px 18px 4px;padding:12px 14px}
.hello{margin:auto;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;background:rgba(255,255,255,.8);border-radius:20px;padding:22px 20px;max-width:290px}
.hello b{font-size:17px}
.hello p{margin:0;color:var(--muted);font-size:14px;line-height:1.45}
.compose{background:var(--wall);box-shadow:none;padding:6px 8px calc(8px + var(--safe-bottom));gap:8px}
.send{align-items:flex-end;gap:6px}
.pill{flex:1;display:flex;align-items:flex-end;background:var(--card);border-radius:24px;box-shadow:0 1px 1px rgba(31,29,43,.08);min-height:46px}
.pill .emob{width:44px;height:46px;color:var(--faint)}
.pill .emob[aria-pressed="true"]{color:var(--acc)}
.send textarea{background:transparent;border-radius:0;padding:13px 14px 13px 0;min-height:46px}
.send .go{background:var(--acc);width:46px;height:46px;box-shadow:0 2px 6px rgba(255,107,87,.35)}
.emos{background:var(--card);border-radius:18px;padding:8px}
.emos button{background:none;height:44px}
.emos button:active{background:var(--soft)}
/* perfil */
.body .row{margin:0 14px;width:calc(100% - 28px);background:var(--soft)}
.pvt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}

/* =========================================================
   v4 · temas, citas, fotos, notas de voz, reacciones, toque
   ========================================================= */
[data-theme]{--wall:#FBF0EC}
[data-theme=menta]{--wall:#E3F4EC;--acc:#109070;--acc-soft:#D3EFE3}
[data-theme=melocoton]{--wall:#EFEDF7;--acc:#6C5CE7;--acc-soft:#EEEBFF}
[data-theme=cielo]{--wall:#E4EFFB;--acc:#2A72E0;--acc-soft:#D6E6FA}
[data-theme=rosa]{--wall:#FBE7EF;--acc:#D23C74;--acc-soft:#F8D7E4}
[data-theme=noche]{--wall:#221520;--acc:#FF8A4D;--acc-soft:#3A2838}
[data-theme=noche] .msgs{background-image:none}
[data-theme=noche] .bub.them{background:#3A2838;color:#F7EFF0}
[data-theme=noche] .bub.them .meta{color:#B9A6AD}
[data-theme=noche] .day span,[data-theme=noche] .evt{background:#3A2838;color:#D9C9CE}
[data-theme=noche] .compose{background:#221520}
[data-theme=noche] .pill{background:#3A2838}
[data-theme=noche] .send textarea{color:#fff}
[data-theme=noche] .hello{background:rgba(42,40,70,.9);color:#fff}
[data-theme=noche] .quote{background:rgba(255,255,255,.08)}
[data-theme=noche] .evt.buzz{color:#FFC4CF}
[data-theme=noche] .recbar{background:#3A2838;color:#fff}
.bub.me{background-color:var(--acc)}
.chead .rt span.on,.knockb{color:var(--acc)!important}
.send .go{background:var(--acc);box-shadow:0 2px 6px rgba(0,0,0,.18)}
/* citas */
.quote{display:flex;flex-direction:column;gap:1px;width:100%;min-width:160px;text-align:left;border:0;border-left:3px solid var(--qc,var(--acc));background:rgba(31,29,43,.05);border-radius:8px;padding:5px 9px;margin:2px 0 5px;color:inherit;font-size:13px}
.bub.me .quote{background:rgba(255,255,255,.16);border-left-color:#fff}
.quote b{font-size:12.5px;color:var(--qc,var(--acc))}
.bub.me .quote b{color:#fff}
.qp{display:block;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.qp svg{vertical-align:-2px}
.replybar{display:flex;align-items:center;gap:10px;background:var(--card);border-radius:16px;padding:6px 6px 6px 12px;border-left:4px solid var(--acc);color:var(--acc)}
.replybar>span{flex:1;min-width:0;display:flex;flex-direction:column;color:var(--text);font-size:13px}
.replybar b{color:var(--acc);font-size:12.5px}
.bub.flash{animation:flash 1.2s}
@keyframes flash{0%,40%{box-shadow:0 0 0 4px var(--acc-soft),0 0 0 6px var(--acc)}100%{box-shadow:0 1px 1px rgba(31,29,43,.07)}}
.bub{transition:transform .15s;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.bub.swipe-ok::before{content:'';position:absolute;left:-34px;top:50%;width:24px;height:24px;margin-top:-12px;border-radius:12px;background:var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 8L4 13l6 5'/%3E%3Cpath d='M4 13h10a6 6 0 016 6'/%3E%3C/svg%3E") center/15px no-repeat}
/* fotos */
.bub.k-image{padding:4px;max-width:72%}
.ph{display:block;border:0;padding:0;width:min(260px,62vw);max-height:340px;border-radius:14px;overflow:hidden;background:rgba(31,29,43,.08);position:relative}
.ph img{width:100%;height:100%;object-fit:cover;display:block}
.ph .spin{position:absolute;left:50%;top:50%;margin:-11px}
.bub.k-image .meta{position:absolute;right:10px;bottom:10px;margin:0;background:rgba(0,0,0,.45);color:#fff!important;padding:3px 7px;border-radius:9px}
.bub.k-image .meta .tk{color:#fff}
.bub.k-image .meta .tk.read{color:#BFE3FF}
.cap{display:block;padding:6px 8px 2px}
.bub.k-image.hasrx .meta{bottom:30px}
.imgview{position:fixed;inset:0;z-index:95;background:rgba(10,10,20,.94);display:flex;align-items:center;justify-content:center;padding:16px;animation:fade .15s}
.imgview img{max-width:100%;max-height:100%;border-radius:8px}
.imgview .ib{position:absolute;top:calc(var(--safe-top) + 12px);right:12px;background:rgba(255,255,255,.14);color:#fff}
/* notas de voz */
.vn{display:flex;align-items:center;gap:10px;min-width:200px;padding:2px 0}
.vplay{width:38px;height:38px;border-radius:19px;border:0;background:var(--acc);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bub.me .vplay{background:#fff;color:var(--acc)}
.vbar{flex:1;height:4px;border-radius:2px;background:rgba(31,29,43,.14);overflow:hidden}
.bub.me .vbar{background:rgba(255,255,255,.35)}
.vbar i{display:block;height:100%;background:var(--acc);border-radius:2px;transition:width .2s linear}
.bub.me .vbar i{background:#fff}
.vt{font-size:12px;font-variant-numeric:tabular-nums;opacity:.8;min-width:30px}
.recbar{display:flex;align-items:center;gap:10px;background:var(--card);border-radius:24px;padding:0 0 0 2px;min-height:46px;box-shadow:0 1px 1px rgba(31,29,43,.08)}
.recbar .go{margin-left:auto}
.recdot{width:10px;height:10px;border-radius:5px;background:#EF4444;animation:pulse 1s infinite}
.recbar #recT{font-weight:700;font-variant-numeric:tabular-nums}
.rechint{font-size:12.5px;color:var(--muted)}
@keyframes pulse{50%{opacity:.3}}
/* reacciones */
.bub.hasrx{margin-bottom:14px}
.rx{position:absolute;bottom:-14px;display:flex;align-items:center;gap:1px;border:0;background:var(--card);border-radius:12px;padding:2px 6px;box-shadow:0 1px 3px rgba(31,29,43,.18);font-size:11px;color:var(--muted)}
.bub.them .rx{left:10px}.bub.me .rx{right:10px}
.rx .emo{width:17px;height:17px}
.rx.mine{box-shadow:0 0 0 1.5px var(--acc),0 1px 3px rgba(31,29,43,.18)}
.rx small{margin:0 2px 0 1px;font-weight:700}
.rxpick{display:flex;justify-content:space-between;background:var(--soft);border-radius:999px;padding:6px 8px}
.rxpick button{border:0;background:none;width:46px;height:46px;border-radius:23px;display:flex;align-items:center;justify-content:center;transition:transform .12s}
.rxpick button:active{transform:scale(1.25)}
.rxpick button[aria-pressed=true]{background:var(--card);box-shadow:0 0 0 2px var(--acc)}
.rxpick .emo{width:32px;height:32px}
/* temas */
.themes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.themes button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:6px;font-weight:600;font-size:13px;color:var(--text);padding:0}
.tsw{width:100%;aspect-ratio:1.3;border-radius:16px;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:10px;box-shadow:inset 0 0 0 1px rgba(31,29,43,.08)}
.tsw i{display:block;height:12px;border-radius:6px;width:60%}
.tsw i:first-child{align-self:flex-end}
.tsw i:last-child{background:#fff;width:50%}
.themes button[aria-pressed=true] .tsw{box-shadow:0 0 0 3px var(--ink)}
.clipb{width:42px;height:46px;color:var(--faint)}
/* el toque */
.knockfx{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;pointer-events:none;background:radial-gradient(circle at 50% 45%,rgba(255,107,87,.22),transparent 60%)}
.knockfx .hand{width:120px;height:120px;border-radius:60px;background:var(--acc);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 14px 40px rgba(255,107,87,.45);animation:knk .5s ease-in-out 3}
.knockfx b{font-size:22px;font-weight:800;color:var(--acc);background:var(--card);padding:6px 16px;border-radius:999px;box-shadow:0 6px 20px rgba(31,29,43,.15);animation:up .3s ease-out}
.knockfx .r{position:absolute;top:calc(50% - 78px);left:50%;width:120px;height:120px;margin-left:-60px;border-radius:50%;border:3px solid var(--acc);opacity:0;animation:ring 1.2s ease-out}
.knockfx .r2{animation-delay:.17s}.knockfx .r3{animation-delay:.34s}
@keyframes knk{0%,100%{transform:rotate(0) scale(1)}30%{transform:rotate(-14deg) scale(1.08)}55%{transform:rotate(6deg) scale(.96)}}
@keyframes ring{0%{transform:scale(.9);opacity:.7}100%{transform:scale(2.4);opacity:0}}
@media (prefers-reduced-motion:reduce){.knockfx .hand,.knockfx .r{animation:none}}

/* v5 */
.gone{display:inline-flex;align-items:center;gap:6px;font-style:italic;opacity:.7}
.bub.k-deleted{background:transparent!important;box-shadow:inset 0 0 0 1px rgba(31,29,43,.12)!important;color:var(--muted)!important}
[data-theme=noche] .bub.k-deleted{color:#B9A6AD!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.15)!important}
.older{align-self:center;font-size:12px;color:var(--muted);padding:6px 0 10px;min-height:30px}
.opt.danger{color:#B42318}
.row.hint{align-items:flex-start}
.row.hint svg{margin-top:2px;flex-shrink:0}

/* =========================================================
   v6 · grupos, archivos, enlaces, ordenador
   ========================================================= */
.flag{display:inline-flex;color:var(--faint);flex-shrink:0;vertical-align:-2px}
.badge.quiet{background:var(--faint)}
.crow.act{background:var(--acc-soft)}
a.row{text-decoration:none}
.chinfo{flex:1;min-width:0;display:flex;align-items:center;gap:8px;border:0;background:none;padding:0;text-align:left;color:inherit}
.fwd{display:flex;align-items:center;gap:4px;font-size:12px;font-style:italic;opacity:.75;margin-bottom:2px}
.filec{display:flex;align-items:center;gap:10px;border:0;background:rgba(31,29,43,.06);border-radius:12px;padding:8px 10px;color:inherit;text-align:left;min-width:220px;max-width:280px}
.bub.me .filec{background:rgba(255,255,255,.18)}
.fico{width:40px;height:40px;border-radius:10px;background:var(--acc);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;letter-spacing:.02em}
.bub.me .fico{background:#fff;color:var(--acc)}
.fmeta{flex:1;min-width:0;display:flex;flex-direction:column}
.fmeta b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fmeta span{font-size:12px;opacity:.75}
.bub a{color:inherit;text-decoration:underline;word-break:break-all}
.lcard{display:flex;flex-direction:column;margin:6px 0 2px;border-radius:12px;overflow:hidden;background:rgba(31,29,43,.06);text-decoration:none!important;color:inherit;max-width:280px;word-break:normal!important}
.bub.me .lcard{background:rgba(255,255,255,.18)}
.lcard img{width:100%;max-height:150px;object-fit:cover;display:block}
.lcard span{display:flex;flex-direction:column;gap:2px;padding:8px 10px}
.lcard b{font-size:13.5px;line-height:1.3}
.lcard small{font-size:12px;opacity:.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lcard i{font-style:normal;font-size:11.5px;opacity:.7}
.ginfo{display:flex;flex-direction:column;align-items:center;gap:6px;padding:4px 0 6px;text-align:center}
.ginfo h2{margin:4px 0 0}
.ginfo>span{color:var(--muted);font-size:13.5px}
.mrow{display:flex;align-items:center;gap:10px;padding:6px 4px}
.mopts{display:flex;gap:8px;flex-wrap:wrap;padding:0 4px 8px 54px}
.mopts .btn{min-height:40px;font-size:13.5px;padding:0 14px}
.sres{flex-direction:column;align-items:flex-start}
.sres .rt span{white-space:normal}
.rep{border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:4px}
.rep.done{opacity:.6}
.rep small{color:var(--muted)}
.rep p{margin:4px 0 0;color:var(--text)!important}
.rep blockquote{margin:4px 0;padding:6px 10px;border-left:3px solid var(--line);background:var(--bg);font-size:13px;border-radius:0}
.rep .mopts{padding:6px 0 0}
.sw{width:42px;height:26px;border-radius:13px;background:var(--line);position:relative;flex-shrink:0;transition:background .15s}
.sw::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.sw.on{background:var(--acc)}.sw.on::after{transform:translateX(16px)}
/* ordenador: dos columnas */
@media (min-width:900px){
  body{background:#F3E7E3}
  #app.wide{max-width:1280px;flex-direction:row;height:100%;margin:0 auto}
  #app.wide .side{width:380px;flex-shrink:0;display:flex;flex-direction:column;border-right:1px solid var(--sep);background:var(--card);position:relative;min-height:0}
  #app.wide .main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--wall,#FBF0EC);position:relative;min-height:0}
  #app.wide .chead [data-a=back]{display:none}
  #app.wide .chead{padding-left:14px}
  #app.wide .bub{max-width:62%}
  #app.wide #sheetHost{position:absolute;inset:0;pointer-events:none;z-index:40}
  #app.wide #sheetHost .sheetbg{pointer-events:auto;align-items:center;justify-content:center}
  #app.wide #sheetHost .sheet{max-width:480px;border-radius:24px;max-height:86%}
  .mainempty{margin:auto;display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--muted);text-align:center;padding:40px}
  .mainempty b{font-size:22px;color:var(--text)}
  .mainempty p{margin:0;max-width:300px}
}

/* bienvenida */
.onbnote{font-size:13px!important;margin-top:-4px!important}
.auth label.onbcheck{flex-direction:row;align-items:flex-start;gap:10px;font-weight:500;color:#E3D6D9;font-size:13.5px;line-height:1.45}
.onbcheck input{width:20px;height:20px;margin:1px 0 0;flex-shrink:0;accent-color:var(--acc)}
.onbcheck a{color:#FFC4CF}
.auth input[type=date]{color-scheme:dark}

/* idioma en la entrada */
.authfoot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}
.langsel{flex-direction:row!important;align-items:center;gap:6px!important;color:#E3D6D9}
.langsel select{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:10px;height:36px;padding:0 8px;font-size:14px}
.langsel select option{color:#1F1D2B}

/* ---------- v10 · marca nueva y filtros ---------- */
.top h1.brand{display:flex;align-items:center;gap:9px;font-size:30px}
.top h1.brand .hlogo{flex-shrink:0;margin-top:2px}
.pills{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0 2px}
.pills::-webkit-scrollbar{display:none}
.fpill{border:0;border-radius:999px;height:36px;padding:0 16px;background:var(--soft);color:var(--text);font-weight:700;font-size:14px;display:inline-flex;align-items:center;gap:7px;flex-shrink:0;transition:background .15s,color .15s}
.fpill[aria-pressed="true"]{background:var(--acc);color:#fff;box-shadow:0 4px 12px rgba(255,77,109,.28)}
.fpill i{font-style:normal;min-width:20px;height:20px;border-radius:10px;padding:0 6px;background:var(--acc);color:#fff;font-size:11.5px;font-weight:800;display:inline-flex;align-items:center;justify-content:center}
.fpill[aria-pressed="true"] i{background:#fff;color:var(--acc)}
.badge{background:var(--acc)}
.av.grp{background:linear-gradient(135deg,#FF8A4D,#FF4D6D)}
/* adjuntar */
.attach{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:4px 0 6px}
.attach button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:8px;font-weight:600;font-size:13.5px;color:var(--text);padding:6px 0}
.attach .ai{width:58px;height:58px;border-radius:29px;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(31,29,43,.14)}
/* foto de una vista */
.once{display:flex;align-items:center;gap:10px;border:0;background:none;color:inherit;padding:4px 2px;text-align:left;font:inherit;min-width:190px}
.once svg{flex-shrink:0;color:var(--acc)}
.bub.me .once svg{color:#fff}
.once span{display:flex;flex-direction:column;gap:1px}
.once b{font-size:14.5px}
.once small{font-size:12px;opacity:.7}
.once.done{opacity:.65}
button.once{cursor:pointer}
.oncev{position:fixed;inset:0;z-index:120;background:#0E0D14;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.oncebar{display:flex;align-items:center;gap:10px;color:#fff;padding:calc(var(--safe-top) + 10px) 12px 10px 16px;font-size:13.5px}
.oncebar span{flex:1;opacity:.85}
.oncebar .ib{background:rgba(255,255,255,.12);color:#fff}
.oncev img{flex:1;min-height:0;object-fit:contain;width:100%;pointer-events:none}

/* ---------- modo oscuro ---------- */
html[data-mode=dark]{color-scheme:dark;--text:#ECEAF2;--ink:#2E2A44;--ink2:#3A3654;--bg:#121119;--card:#1C1B26;--soft:#272535;--line:#2E2C3D;--sep:#2A2838;--muted:#A9A5B5;--faint:#7E7A8C;--acc-soft:#3A2030;--wall:#15141D;--off:#5D596C}
html[data-mode=dark],html[data-mode=dark] body,html[data-mode=dark] #app{background:var(--bg)}
html[data-mode=dark] body{color:var(--text)}
@media (min-width:600px){html[data-mode=dark] body{background:#0B0A10}}
html[data-mode=dark] .bub.me{color:#fff}
html[data-mode=dark] .send .go,html[data-mode=dark] .btn.dark{background:var(--acc);color:#fff}
html[data-mode=dark] .msgs{background-color:var(--wall)}
html[data-mode=dark] [data-theme]{--wall:#15141D}
html[data-mode=dark] .evt.buzz{color:#FFB3C1;border-color:#5A2A3A}
html[data-mode=dark] .row.off{background:rgba(255,255,255,.04)}
html[data-mode=dark] .btn.danger{background:#3A1A20;color:#FFB4B4}
html[data-mode=dark] .toast.buzz{background:var(--acc)}
html[data-mode=dark] .search input,html[data-mode=dark] .sheet input[type=text],html[data-mode=dark] .sheet input[type=email],html[data-mode=dark] .send textarea{color:var(--text)}
html[data-mode=dark] .opt[aria-pressed="true"]{border-color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc)}
html[data-mode=dark] .av.ring{box-shadow:0 0 0 3px var(--bg),0 0 0 6px var(--ringc,var(--on))}
html[data-mode=dark] .strip .av{box-shadow:0 0 0 2px var(--bg),0 0 0 4px #6A3346}
html[data-mode=dark] a{color:#FF8FA3}
html[data-mode=dark] .auth{background:#0E0D14}
html[data-mode=dark] .msgs{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23242231' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 20h18v12H21l-5 4v-4h-2z'/%3E%3Ccircle cx='86' cy='26' r='7'/%3E%3Cpath d='M83 25h.01M89 25h.01M83.5 28.5c1.5 1.3 3.5 1.3 5 0'/%3E%3Cpath d='M30 84l3-6 3 6-6-2.5h6z'/%3E%3Cpath d='M78 80c0-3 4-4 5-1 1-3 5-2 5 1 0 3-5 6-5 6s-5-3-5-6z'/%3E%3Cpath d='M56 54h10M61 49v10'/%3E%3Cpath d='M100 98l6 6M106 98l-6 6'/%3E%3C/svg%3E")}
.bub.k-image.k-once{padding:8px 12px 6px}
.bub.k-image.k-once .meta{position:static;background:none;color:inherit!important;padding:0;margin-top:2px;opacity:.75}
.bub.me.k-image.k-once .meta .tk{color:inherit}

/* v12 · burbujas con degradado, cola, onda de voz y animaciones */
.bub.me{background-image:linear-gradient(135deg,color-mix(in srgb,var(--acc) 62%,#FFB25E) 0%,var(--acc) 72%)}
.bub.them{box-shadow:0 1px 2px rgba(31,29,43,.07),0 3px 10px rgba(31,29,43,.05)}
html[data-mode=dark] .bub.them{box-shadow:none}
/* cola en la última burbuja de cada grupo */
.bub.last::after{content:'';position:absolute;bottom:0;width:12px;height:16px;pointer-events:none}
.bub.me.last::after{right:-8px;background:var(--acc);clip-path:path('M0 0C0 9 4 14 12 16H0Z')}
.bub.them.last::after{left:-8px;background:var(--card);clip-path:path('M12 0C12 9 8 14 0 16H12Z')}
.bub.me.last{border-bottom-right-radius:0!important}.bub.them.last{border-bottom-left-radius:0!important}
.bub.big::after,.bub.k-deleted::after,.bub.k-image:not(.k-once)::after{display:none}
.bub.big.last,.bub.k-deleted.last,.bub.k-image.last:not(.k-once){border-radius:18px!important}
[data-theme=noche] .bub.them.last::after{background:#3A2838}
/* aparecer con rebote */
.bub.pop{animation:bpop .32s cubic-bezier(.2,.9,.3,1.3)}
.bub.me.pop{transform-origin:100% 100%}.bub.them.pop{transform-origin:0 100%}
@keyframes bpop{0%{transform:scale(.6) translateY(10px);opacity:0}100%{transform:none;opacity:1}}
/* onda de la nota de voz */
.wave{position:relative;flex:1;height:26px;display:block;min-width:120px}
.wave>i,.wfin>i{display:inline-block;width:3px;margin-right:2px;border-radius:2px;vertical-align:middle;background:rgba(31,29,43,.22)}
.wave{display:flex;align-items:center}.wfin{display:flex;align-items:center;height:26px;width:max-content}
.bub.me .wave>i{background:rgba(255,255,255,.42)}
.wfill{position:absolute;left:0;top:0;bottom:0;overflow:hidden;transition:width .2s linear}
.wfin>i{background:var(--acc)}.bub.me .wfin>i{background:#fff}
html[data-mode=dark] .wave>i{background:rgba(255,255,255,.22)}
html[data-mode=dark] .bub.me .wave>i{background:rgba(255,255,255,.42)}
/* explosión de reacciones */
.rxfx{position:fixed;z-index:90;width:0;height:0;pointer-events:none}
.rxfx span{position:absolute;left:-11px;top:-11px;width:22px;height:22px;animation:rxb .75s cubic-bezier(.2,.7,.3,1) forwards;opacity:0}
.rxfx .emo,.rxfx svg{width:22px;height:22px}
@keyframes rxb{0%{transform:translate(0,0) scale(.4);opacity:0}20%{opacity:1}100%{transform:translate(var(--x),var(--y)) scale(1.1);opacity:0}}
/* el botón del toque se mueve al darlo */
.knockb.wig svg{animation:knk .45s ease-in-out 2}
/* foto de una vista: la hora va debajo, nunca encima del texto */
.bub.k-once .once{min-width:0;width:100%;justify-content:flex-start}
.bub.k-once .once span{align-items:flex-start;text-align:left}
.bub.k-once .meta{float:none!important;display:flex!important;justify-content:flex-end;margin:4px 0 0!important}
/* modo oscuro: botón de compartir legible */
html[data-mode=dark] .btn.dark{background:#E23E5E!important;color:#fff!important}
@media (prefers-reduced-motion:reduce){.bub.pop,.knockb.wig svg{animation:none}}
