/* DÚO · Liquid Glass — tokens, materiales, movimiento y componentes.
   Dirección: cristal sobre un fondo índigo profundo con luces de color; acento personalizable. */
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #7c5cff; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #5eead4; }
:root {
  --acc: #4f9dff; --acc-rgb: 79,157,255; --on-acc: #06101f;
  --ink0: #070a1c; --ink1: #0d1330; --t1: #ffffff; --t2: rgba(255,255,255,.82); --t3: rgba(255,255,255,.66);
  --gk: 1.2; --blur: 28px; --fs: 1; --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ios: cubic-bezier(.32,.72,0,1); --ease: cubic-bezier(.22,1,.36,1); --spring: cubic-bezier(.34,1.32,.5,1);
  --ok: #4ade80; --warn: #fbbf24; --bad: #ff6b6b; --lvl: 0;
  --sb: env(safe-area-inset-bottom, 0px); --st: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--ink0); color: var(--t1); font-family: var(--font); font-size: calc(16px * var(--fs)); line-height: 1.4; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; padding: 0; border: 0; background: none; touch-action: manipulation; transition: transform .28s var(--spring), filter .2s, background-color .25s, border-color .25s, opacity .2s; }
button:active:not(:disabled) { transform: scale(.94); }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(var(--acc-rgb), .65); border-radius: 12px; }
::selection { background: rgba(var(--acc-rgb), .55); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--t3); } .t2 { color: var(--t2); } .grow { flex: 1; min-width: 0; } .hide { display: none !important; }
.ic { flex: none; display: block; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.small { font-size: .82rem; } .tiny { font-size: .72rem; } .bold { font-weight: 600; }
.row { display: flex; align-items: center; gap: 12px; } .col { display: flex; flex-direction: column; gap: 10px; } .wrap { flex-wrap: wrap; }

/* ---------- Fondo ambiental ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(120% 90% at 10% 0%, #1c1760 0%, transparent 55%), radial-gradient(90% 80% at 100% 100%, #3a1450 0%, transparent 60%), var(--ink0); --px: 0; --py: 0; }
.bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; transform: translate3d(calc(var(--px) * 22px), calc(var(--py) * 16px), 0) scale(calc(1 + var(--lvl) * .14)); transition: background .9s; }
.bg .b1 { width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax; background: var(--c1); }
.bg .b2 { width: 38vmax; height: 38vmax; right: -12vmax; top: 18vh; background: #ff5a9d; opacity: .32; }
.bg .b3 { width: 40vmax; height: 40vmax; left: 22vw; bottom: -22vmax; background: var(--c2); opacity: .34; }
.bg .b4 { width: 24vmax; height: 24vmax; right: 20vw; top: -8vmax; background: rgba(var(--acc-rgb), 1); opacity: .22; }
[data-motion="full"][data-ambient="on"] .bg .b1 { animation: drift 24s ease-in-out infinite alternate; }
[data-motion="full"][data-ambient="on"] .bg .b2 { animation: drift 30s ease-in-out infinite alternate-reverse; }
[data-motion="full"][data-ambient="on"] .bg .b3 { animation: drift 36s ease-in-out infinite alternate; }
@keyframes drift { to { margin: 4vmax 0 0 6vmax; } }
[data-q="solid"] .bg i, [data-q="light"] .bg i { filter: none; opacity: .18; }
#fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .8; }
html[data-particles="off"] #fx { display: none; }
html.paused *, html.paused *::before, html.paused *::after { animation-play-state: paused !important; }

/* ---------- Materiales de cristal (jerarquía g1 < g2 < g3) ---------- */
.glass { position: relative; --a1: .11; background: linear-gradient(140deg, rgba(255,255,255,calc(var(--a1) * var(--gk))), rgba(255,255,255,calc(var(--a1) * var(--gk) * .42))); border: 1px solid rgba(255,255,255,.17); box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(255,255,255,.05), 0 14px 38px rgba(0,0,0,.28); -webkit-backdrop-filter: blur(var(--blur)) saturate(175%); backdrop-filter: blur(var(--blur)) saturate(175%); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(260px circle at var(--lx, 50%) var(--ly, 0%), rgba(255,255,255,.2), transparent 62%); opacity: 0; transition: opacity .45s var(--ease); }
@media (hover: hover) { .glass:hover::before { opacity: 1; } }
.g1 { --a1: .07; } .g2 { --a1: .11; } .g3 { --a1: .18; } .dk { background: rgba(8,12,32,.5); }
.lift { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
@media (hover: hover) { .lift:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 22px 50px rgba(0,0,0,.36); } }
[data-q="light"] .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(44,52,98,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
[data-q="light"] .glass.dk { background: rgba(10,14,34,.84); }
[data-q="solid"] .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: #1b2142; border-color: #2e3862; box-shadow: none; }
[data-q="solid"] .glass.dk { background: #101532; }
[data-q="solid"] .glass::before, [data-q="light"] .glass::before { display: none; }
[data-contrast="high"] { --t2: #fff; --t3: rgba(255,255,255,.92); }
[data-contrast="high"] .glass { border-color: rgba(255,255,255,.55); }

/* ---------- Botones y controles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); position: relative; overflow: hidden; white-space: nowrap; }
.btn.acc { background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 55%), var(--acc); color: var(--on-acc); border-color: rgba(255,255,255,.45); }
.btn.danger { background: rgba(255,107,107,.22); border-color: rgba(255,107,107,.6); color: #ffd7d7; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: .84rem; }
.btn.flat { background: transparent; border-color: transparent; box-shadow: none; }
@media (hover: hover) { .btn:hover:not(:disabled), .ibtn:hover:not(:disabled) { filter: brightness(1.2); } }
.ibtn { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); flex: none; position: relative; }
.ibtn.flat { background: transparent; border-color: transparent; } .ibtn.sm { width: 34px; height: 34px; }
.ibtn.on { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.55); }
.ibtn.acc { background: var(--acc); color: var(--on-acc); border-color: rgba(255,255,255,.45); }
.ibtn.bad { background: #d92d3a; border-color: rgba(255,255,255,.4); }
@media (pointer: coarse) { .ibtn { width: 46px; height: 46px; } .ibtn.sm { width: 40px; height: 40px; } .btn { min-height: 46px; } .btn.sm { min-height: 40px; } }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); font-size: .84rem; font-weight: 500; white-space: nowrap; }
.chip.on { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.6); font-weight: 600; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: .84rem; font-weight: 500; white-space: nowrap; color: var(--t2); }
.seg button.on { color: var(--on-acc); font-weight: 600; }
.seg .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--acc); transition: transform .5s var(--ios), width .5s var(--ios); }
.sw { width: 52px; height: 32px; border-radius: 16px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); position: relative; flex: none; transition: background .3s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .4s var(--spring), width .2s; }
.sw:active::after { width: 30px; } .sw[aria-checked="true"] { background: var(--acc); } .sw[aria-checked="true"]::after { transform: translateX(20px); } .sw[aria-checked="true"]:active::after { transform: translateX(14px); }
.inp { width: 100%; min-height: 44px; padding: 0 16px; border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.22); outline: none; color: #fff; }
.inp::placeholder, .ta::placeholder { color: var(--t3); }
.inp:focus { border-color: rgba(var(--acc-rgb), 1); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .35); }
textarea.inp { padding: 12px 16px; resize: vertical; min-height: 90px; line-height: 1.45; }
input[type="range"] { accent-color: var(--acc); width: 100%; height: 28px; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; } .field > label { font-size: .82rem; color: var(--t2); font-weight: 500; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: var(--on-acc); font-size: .68rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--ink1); animation: badgein .55s var(--spring) both; }
@keyframes badgein { from { transform: scale(0); } }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--ink1); flex: none; } .dot.busy { background: var(--bad); } .dot.away { background: var(--warn); } .dot.off { background: #8890a8; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; position: relative; color: #0a0f24; background-size: cover; background-position: center; box-shadow: inset 0 2px 5px rgba(255,255,255,.6); }
.avatar .dot { position: absolute; right: -1px; bottom: -1px; }

/* ---------- Estructura ---------- */
.shell { position: fixed; inset: 0; display: flex; gap: 14px; padding: calc(14px + var(--st) * 0) 14px 14px; }
.rail { width: 214px; flex: none; border-radius: 32px; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; transition: width .6s var(--ios), padding .6s var(--ios); z-index: 2; }
html[data-rail="collapsed"] .rail { width: 76px; padding: 14px 13px; }
.rail .nav-ind { position: absolute; left: 12px; right: 12px; top: 0; height: 50px; border-radius: 18px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 18px rgba(0,0,0,.25); transition: transform .6s var(--ios), left .6s var(--ios), right .6s var(--ios); z-index: 0; pointer-events: none; }
html[data-rail="collapsed"] .rail .nav-ind { left: 13px; right: 13px; }
.rb { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; height: 50px; border-radius: 18px; padding: 0 13px; color: var(--t2); font-weight: 500; white-space: nowrap; width: 100%; text-align: left; }
.rb .lbl { transition: opacity .35s; overflow: hidden; } html[data-rail="collapsed"] .rb .lbl { opacity: 0; width: 0; }
.rb[aria-current="page"] { color: #fff; font-weight: 600; } .rb[aria-current="page"] .ic { animation: bounce .55s var(--spring); }
@keyframes bounce { 0% { transform: scale(.7); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
.rail .sp { flex: 1; }
.rail .brand { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 4px; font-weight: 700; letter-spacing: .04em; margin-bottom: 4px; }
.brand .mark { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #fff, var(--acc)); color: #0a0f24; font-weight: 800; flex: none; box-shadow: inset 0 2px 4px rgba(255,255,255,.7); }
html[data-rail="collapsed"] .brand span:last-child { display: none; }
.main { flex: 1; min-width: 0; position: relative; border-radius: 32px; overflow: hidden; isolation: isolate; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; contain: layout paint; backface-visibility: hidden; }
.vscroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 6px 30px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.vh { position: sticky; top: 0; z-index: 6; display: flex; align-items: flex-end; gap: 12px; padding: 12px 8px 12px 6px; --c: 0; }
.vh::before { content: ""; position: absolute; inset: 0 -6px; z-index: -1; opacity: var(--c); background: linear-gradient(180deg, rgba(8,11,30,.82), rgba(8,11,30,.55)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.1); }
.vh h1 { font-size: 2.1rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; transform-origin: left bottom; transform: scale(calc(1 - .34 * var(--c))); will-change: transform; }
.vh .sub { font-size: .9rem; color: var(--t2); }
.vh .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card { border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card > h2, .card .ch { font-size: 1.02rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); padding: 4px 6px; }
.stagger > * { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 34px 20px; color: var(--t2); }
.state .ico { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.state.bad .ico { background: rgba(255,107,107,.18); border-color: rgba(255,107,107,.5); } .state h3 { color: #fff; font-size: 1.05rem; } .state p { max-width: 38ch; font-size: .9rem; }
.skel { border-radius: 16px; background: linear-gradient(100deg, rgba(255,255,255,.08) 30%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.08) 70%) 0 0 / 220% 100%; animation: shimmer 1.4s linear infinite; min-height: 20px; }
@keyframes shimmer { to { background-position: -120% 0; } }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 16px; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.4); font-size: .84rem; color: #ffe9b0; }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(251,191,36,.18); border: 1px solid rgba(251,191,36,.5); color: #ffe9b0; }
.tag.ok { background: rgba(74,222,128,.15); border-color: rgba(74,222,128,.5); color: #c3f7d4; } .tag.bad { background: rgba(255,107,107,.16); border-color: rgba(255,107,107,.5); color: #ffd0d0; }

/* Barra inferior (teléfonos) */
.bnav { display: none; position: fixed; left: 12px; right: 12px; bottom: max(10px, var(--sb)); height: 68px; border-radius: 34px; z-index: 40; padding: 0 6px; align-items: center; justify-content: space-around; }
.bnav .nav-ind { position: absolute; top: 8px; bottom: 8px; left: 0; width: 20%; border-radius: 26px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4); transition: transform .6s var(--ios); pointer-events: none; }
.bn { position: relative; z-index: 1; flex: 1; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; color: var(--t2); font-weight: 500; min-width: 44px; }
.bn[aria-current="page"] { color: #fff; font-weight: 600; } .bn[aria-current="page"] .ic { animation: bounce .55s var(--spring); }
@media (max-width: 1099px) { .rail { width: 76px; padding: 14px 13px; } .rail .nav-ind { left: 13px; right: 13px; } .rb .lbl { opacity: 0; width: 0; } .brand span:last-child { display: none; } .rail .railtoggle { display: none; } }
@media (max-width: 719px) {
  .rail { display: none; } .bnav { display: flex; }
  .shell { padding: 8px 8px calc(88px + var(--sb)); gap: 0; } .main { border-radius: 26px; }
  .vh h1 { font-size: 1.8rem; } .grid { grid-template-columns: 1fr; }
}

/* ---------- Capas: hojas, diálogos, menús, avisos ---------- */
.layer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.layer > * { pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: rgba(3,5,16,.52); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet { position: absolute; left: 50%; bottom: max(10px, var(--sb)); translate: -50% 0; width: min(580px, calc(100% - 20px)); max-height: min(88%, 860px); display: flex; flex-direction: column; border-radius: 32px; overflow: hidden; --a1: .2; will-change: transform; background: linear-gradient(140deg, rgba(40,46,92,.82), rgba(24,28,62,.82)); }
.sheet.l { width: min(860px, calc(100% - 20px)); } .sheet.full { width: calc(100% - 16px); max-height: calc(100% - 16px); height: calc(100% - 16px); }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px 6px 20px; touch-action: none; cursor: grab; flex: none; position: relative; }
.sheet-h::before { content: ""; position: absolute; top: 6px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(255,255,255,.4); }
.sheet-h h2 { font-size: 1.1rem; font-weight: 700; padding-top: 10px; flex: 1; min-width: 0; }
.sheet-h .ibtn { margin-top: 10px; }
.sheet-b { overflow-y: auto; padding: 8px 20px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 0; overscroll-behavior: contain; }
.dlg { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(340px, calc(100% - 40px)); border-radius: 30px; padding: 24px 20px 14px; display: flex; flex-direction: column; gap: 6px; text-align: center; background: linear-gradient(140deg, rgba(48,54,104,.9), rgba(26,30,66,.9)); }
.dlg h2 { font-size: 1.1rem; } .dlg p { color: var(--t2); font-size: .9rem; margin-bottom: 8px; } .dlg .acts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; } .dlg .acts .btn { width: 100%; }
.menu { position: absolute; min-width: 214px; max-width: 280px; border-radius: 22px; padding: 6px; display: flex; flex-direction: column; background: linear-gradient(140deg, rgba(48,54,104,.9), rgba(26,30,66,.9)); transform-origin: var(--ox, 0) var(--oy, 0); }
.menu button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 16px; text-align: left; font-size: .92rem; width: 100%; }
.menu button:hover, .menu button:focus-visible { background: rgba(255,255,255,.16); } .menu button.bad { color: #ffb4b4; } .menu hr { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 4px 8px; width: calc(100% - 16px); }
.menu .emo { display: flex; justify-content: space-around; padding: 6px 4px 4px; } .menu .emo button { width: 42px; min-height: 42px; padding: 0; justify-content: center; font-size: 1.3rem; border-radius: 50%; }
.toasts { position: fixed; top: max(12px, var(--st)); left: 50%; translate: -50% 0; width: min(430px, calc(100% - 20px)); display: flex; flex-direction: column; gap: 8px; z-index: 200; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 26px; touch-action: pan-x; background: linear-gradient(140deg, rgba(50,56,108,.92), rgba(28,32,70,.92)); }
.toast .ti { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--acc-rgb), .3); border: 1px solid rgba(255,255,255,.3); flex: none; }
.toast .tt { font-weight: 600; font-size: .9rem; } .toast .tb { font-size: .82rem; color: var(--t2); } .toast .btn { flex: none; }
.donepop { position: fixed; left: 50%; top: 42%; translate: -50% -50%; z-index: 210; padding: 24px 32px; border-radius: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; font-weight: 600; background: linear-gradient(140deg, rgba(50,56,108,.9), rgba(28,32,70,.9)); }
.donepop svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .55s .15s var(--ease) forwards; } @keyframes draw { to { stroke-dashoffset: 0; } }
.wave { position: fixed; z-index: 150; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); box-shadow: 0 0 24px rgba(var(--acc-rgb), .9); pointer-events: none; animation: ripple .8s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(9); opacity: 0; } }
.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.ring-load { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; }

/* Botón flotante de acciones rápidas */
.fabwrap { position: fixed; right: 26px; bottom: 26px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.fabwrap > * { pointer-events: auto; }
.fabmain { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,0) 55%), var(--acc); color: var(--on-acc); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 12px 30px rgba(0,0,0,.4), 0 0 28px rgba(var(--acc-rgb), .45); }
.fabmain .ic { transition: transform .5s var(--spring); } .fabmain[aria-expanded="true"] .ic { transform: rotate(135deg); }
.fabitem { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
@media (max-width: 719px) { .fabwrap { right: 16px; bottom: calc(92px + var(--sb)); } .fabmain { width: 52px; height: 52px; } }
body.nofab .fabwrap { display: none; }

/* ---------- Inicio ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px; border-radius: 32px; }
.hero .clock { font-size: clamp(2.6rem, 8vw, 4.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero .greet { font-size: 1.15rem; color: var(--t2); }
.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.qa button { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; border-radius: 24px; font-weight: 600; font-size: .9rem; position: relative; }
.qa .qi { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(var(--acc-rgb), .3); border: 1px solid rgba(255,255,255,.35); }
.stat { display: flex; flex-direction: column; gap: 2px; } .stat b { font-size: 1.7rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .stat span { font-size: .78rem; color: var(--t2); }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } @media (max-width: 520px) { .statgrid { grid-template-columns: repeat(2, 1fr); } }
.act-item { display: flex; align-items: center; gap: 12px; padding: 8px 4px; font-size: .9rem; } .act-item .ai { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); flex: none; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: .88rem; }
.emogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; }
.emogrid button { height: 46px; font-size: 1.5rem; border-radius: 14px; display: grid; place-items: center; } .emogrid button:hover { background: rgba(255,255,255,.16); transform: scale(1.18); } .emogrid button.on { background: rgba(var(--acc-rgb), .45); }

/* ---------- Chat ---------- */
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; border-radius: 28px; overflow: hidden; background: var(--chatbg, none); }
.chat-surface { position: absolute; inset: 0; background: rgba(6,9,26,.38); z-index: 0; }
.chat > *:not(.chat-surface) { position: relative; z-index: 1; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 10px 10px 0; border-radius: 26px; flex: none; }
.chat-top .nm { font-weight: 600; font-size: 1.02rem; } .typing-line { color: var(--ok); }
.pinbar { display: flex; align-items: center; gap: 10px; margin: 8px 10px 0; padding: 8px 14px; border-radius: 20px; font-size: .86rem; flex: none; text-align: left; width: calc(100% - 20px); animation: rise .5s var(--ease); }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.day { align-self: center; margin: 14px 0 8px; padding: 4px 14px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); color: var(--t2); text-transform: capitalize; }
.msg { display: flex; flex-direction: column; max-width: min(580px, 84%); position: relative; margin-top: 8px; touch-action: pan-y; }
.msg.cont { margin-top: 2px; } .msg.me { align-self: flex-end; align-items: flex-end; } .msg.ari { align-self: flex-start; align-items: flex-start; }
.msg.new.me { animation: inme .55s var(--spring) both; transform-origin: right bottom; } .msg.new.ari { animation: inari .55s var(--spring) both; transform-origin: left bottom; }
@keyframes inme { from { opacity: 0; transform: translate(18px, 14px) scale(.9); } } @keyframes inari { from { opacity: 0; transform: translate(-18px, 14px) scale(.9); } }
.msg.flash .bub { animation: flash 1.6s var(--ease); } @keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .9), 0 0 30px rgba(var(--acc-rgb), .8); } }
.msg.gone { animation: gone .35s var(--ease) forwards; } @keyframes gone { to { opacity: 0; transform: scale(.85); height: 0; margin: 0; } }
.bub { padding: 9px 14px; border-radius: 22px; font-size: .95rem; line-height: 1.45; word-break: break-word; overflow-wrap: anywhere; position: relative; text-align: left; border: 1px solid transparent; white-space: pre-wrap; }
.bub a { text-decoration: underline; } .bub code { font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(0,0,0,.35); padding: 1px 6px; border-radius: 6px; font-size: .88em; } .bub mark { background: #ffe066; color: #1a1500; border-radius: 4px; padding: 0 2px; }
.me .bub { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 60%), rgba(var(--acc-rgb), .88); color: var(--on-acc); border-color: rgba(255,255,255,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 16px rgba(0,0,0,.2); }
.ari .bub { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.me.first .bub { border-bottom-right-radius: 22px; } .me.cont:not(.last) .bub { border-top-right-radius: 8px; border-bottom-right-radius: 8px; } .me.last:not(.first) .bub { border-top-right-radius: 8px; } .me.first:not(.last) .bub { border-bottom-right-radius: 8px; }
.ari.cont:not(.last) .bub { border-top-left-radius: 8px; border-bottom-left-radius: 8px; } .ari.last:not(.first) .bub { border-top-left-radius: 8px; } .ari.first:not(.last) .bub { border-bottom-left-radius: 8px; }
html[data-bubble="solido"] .me .bub { background: var(--acc); backdrop-filter: none; } html[data-bubble="solido"] .ari .bub { background: #262d4f; border-color: #3a4370; backdrop-filter: none; }
html[data-bubble="minimal"] .bub { background: transparent !important; border: 0; box-shadow: none; padding: 4px 12px; color: #fff; backdrop-filter: none; } html[data-bubble="minimal"] .me .bub { border-right: 3px solid var(--acc); border-radius: 4px; } html[data-bubble="minimal"] .ari .bub { border-left: 3px solid rgba(255,255,255,.5); border-radius: 4px; }
html[data-bubble="redonda"] .bub { border-radius: 26px !important; padding: 10px 18px; }
.msg .meta { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--t3); padding: 0 8px; height: 0; overflow: hidden; opacity: 0; transition: height .3s var(--ease), opacity .3s; } .msg.last .meta, .msg:hover .meta, .msg:focus-within .meta, .msg.showmeta .meta { height: 18px; opacity: 1; margin-top: 2px; }
.msg .mact { position: absolute; top: 2px; opacity: 0; transition: opacity .2s; } .msg.me .mact { left: -44px; } .msg.ari .mact { right: -44px; } .msg:hover .mact, .msg .mact:focus-visible { opacity: 1; } @media (pointer: coarse) { .msg .mact { display: none; } }
.reacts { display: flex; gap: 4px; margin-top: -9px; padding: 0 10px; z-index: 1; } .react { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .78rem; background: rgba(20,24,56,.92); border: 1px solid rgba(255,255,255,.3); animation: badgein .5s var(--spring) both; }
.quote { border-left: 3px solid currentColor; padding: 2px 10px; margin-bottom: 6px; font-size: .82rem; opacity: .85; border-radius: 4px; background: rgba(0,0,0,.18); max-width: 100%; }
.swipehint { position: absolute; top: 50%; translate: 0 -50%; opacity: 0; pointer-events: none; } .msg.me .swipehint { left: -36px; } .msg.ari .swipehint { right: -36px; }
.status-ic { display: inline-flex; align-items: center; gap: 3px; } .status-ic.pending { color: var(--warn); }
.typing { align-self: flex-start; margin-top: 8px; display: flex; gap: 5px; padding: 13px 16px; border-radius: 22px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); animation: inari .4s var(--spring); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: tdot 1.2s infinite; } .typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; } @keyframes tdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.demotag { margin-left: 4px; }
.fabdown { position: absolute !important; right: 18px; bottom: 90px; z-index: 5; }
.composer { margin: 0 10px 10px; padding: 8px; border-radius: 30px; display: flex; align-items: flex-end; gap: 4px; flex: none; position: relative; }
.ta { flex: 1; min-height: 44px; max-height: 150px; resize: none; background: transparent; border: 0; outline: none; padding: 11px 8px; line-height: 1.4; color: #fff; overflow-y: auto; }
.stage { display: flex; gap: 8px; padding: 6px 8px 0; overflow-x: auto; flex: none; margin: 0 10px; } .stage .att { position: relative; flex: none; width: 74px; height: 74px; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; animation: badgein .45s var(--spring); } .stage .att img { width: 100%; height: 100%; object-fit: cover; } .stage .att .x { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.65); display: grid; place-items: center; } .stage .att.file { width: auto; min-width: 150px; padding: 0 12px; gap: 8px; display: flex; font-size: .78rem; }
.fmtbar { position: absolute; bottom: calc(100% + 8px); left: 12px; display: flex; gap: 2px; padding: 4px; border-radius: 18px; animation: pop .35s var(--spring); transform-origin: left bottom; } .fmtbar button { width: 38px; height: 38px; border-radius: 12px; font-weight: 700; display: grid; place-items: center; } .fmtbar button:hover { background: rgba(255,255,255,.2); }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
.editbar { display: flex; align-items: center; gap: 10px; padding: 6px 14px; margin: 0 10px; border-radius: 18px; font-size: .84rem; flex: none; animation: rise .4s var(--ease); } .editbar .q { flex: 1; min-width: 0; }
.rec { position: absolute; inset: 0; border-radius: inherit; display: flex; align-items: center; gap: 10px; padding: 8px 10px; z-index: 3; background: rgba(30,12,28,.92); animation: pop .3s var(--spring); } .rec canvas { flex: 1; min-width: 0; height: 40px; } .recdot { width: 12px; height: 12px; border-radius: 50%; background: #ff4d5e; animation: pulse 1s infinite; } @keyframes pulse { 50% { transform: scale(1.4); opacity: .5; } }
.voice { display: flex; align-items: center; gap: 10px; min-width: 230px; } .voice .wf { flex: 1; display: flex; align-items: center; gap: 2px; height: 34px; cursor: pointer; touch-action: none; } .voice .wf i { flex: 1; min-width: 2px; max-width: 4px; border-radius: 2px; background: currentColor; opacity: .38; transition: opacity .2s; } .voice .wf i.pl { opacity: 1; }
.dropzone { position: absolute; inset: 8px; z-index: 8; border-radius: 28px; display: grid; place-items: center; border: 2px dashed rgba(255,255,255,.7); background: rgba(10,14,40,.8); animation: pop .3s var(--spring); text-align: center; pointer-events: none; }
.heartfx { position: fixed; z-index: 160; pointer-events: none; font-size: 1.6rem; animation: heartfly 1.5s var(--ease) forwards; filter: drop-shadow(0 0 10px rgba(255,90,160,.9)); } @keyframes heartfly { 0% { transform: translate(0, 0) scale(.3); opacity: 0; } 15% { opacity: 1; transform: translate(0, -10px) scale(1.2); } 100% { transform: translate(var(--dx), -170px) scale(.9) rotate(var(--dr)); opacity: 0; } }
.searchbar { display: flex; align-items: center; gap: 8px; margin: 8px 10px 0; padding: 6px 8px 6px 14px; border-radius: 22px; flex: none; animation: rise .4s var(--ease); } .searchbar input { flex: 1; min-width: 0; background: none; border: 0; outline: none; min-height: 36px; }
.emopanel { display: flex; flex-direction: column; gap: 10px; } .emotabs { display: flex; gap: 4px; overflow-x: auto; } .emotabs button { width: 42px; height: 42px; border-radius: 14px; font-size: 1.3rem; flex: none; } .emotabs button.on { background: rgba(255,255,255,.28); }

/* ---------- Llamadas ---------- */
.callscr { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: max(26px, var(--st)) 20px max(26px, var(--sb)); overflow: hidden; background: radial-gradient(90% 70% at 50% 18%, hsl(var(--h) 80% 38% / .9), transparent 70%), linear-gradient(180deg, #0a0e26, #150a2a); will-change: transform, opacity, clip-path; }
.callscr .top { text-align: center; z-index: 2; } .callscr .nm { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; } .callscr .st { color: var(--t2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stagebox { position: relative; flex: 1; width: 100%; display: grid; place-items: center; min-height: 0; }
.waves { position: relative; width: 168px; height: 168px; display: grid; place-items: center; } .waves i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); opacity: 0; } html[data-motion="full"] .waves.live i { animation: wv 3.6s var(--ease) infinite; } .waves i:nth-child(2) { animation-delay: 1.2s !important; } .waves i:nth-child(3) { animation-delay: 2.4s !important; } @keyframes wv { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
.waves .avatar { width: 168px; height: 168px; font-size: 4.4rem; box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 3px 8px rgba(255,255,255,.7); z-index: 1; }
.cam-main { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: #000; display: none; } .cam-main video, .cam-main img { width: 100%; height: 100%; object-fit: cover; }
.cam-self { position: absolute; right: 8px; bottom: 8px; width: min(36%, 150px); aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; z-index: 3; display: none; } .cam-self video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.ctrls { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 16px; border-radius: 40px; z-index: 3; flex-wrap: wrap; }
.cbtn { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); position: relative; } .cbtn.off { background: #fff; color: #10142e; } .cbtn .ic { transition: transform .5s var(--spring); } .cbtn.off .ic { transform: rotate(-12deg); } .cbtn.end { background: #e0293a; width: 66px; } .cbtn.ok { background: #1fb85a; width: 72px; height: 72px; } .cbtn.end .ic { transform: rotate(135deg); }
.calllist .item { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-radius: 18px; width: 100%; text-align: left; } .calllist .item:hover { background: rgba(255,255,255,.08); } .calllist .miss { color: #ffb4b4; }
.floatcall { position: fixed; z-index: 65; left: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 34px; touch-action: none; cursor: grab; will-change: transform; }

/* ---------- Música ---------- */
.music { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: 14px; padding: 4px 6px; align-items: start; }
@media (max-width: 900px) { .music { grid-template-columns: minmax(0, 1fr); } }
.music > *, .player > * { min-width: 0; }
.player { --c1: #7c5cff; --c2: #5eead4; border-radius: 32px; padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: --c1 .9s ease, --c2 .9s ease; background: radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--c1) 70%, transparent), transparent 70%), linear-gradient(140deg, rgba(255,255,255,.11), rgba(255,255,255,.05)); }
.coverbox { position: relative; display: grid; place-items: center; height: min(300px, 62vw); }
.cover { width: min(270px, 58vw); aspect-ratio: 1; border-radius: 34px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 2px 8px rgba(255,255,255,.55), 0 26px 60px rgba(0,0,0,.5); display: grid; place-items: center; color: rgba(255,255,255,.92); transition: transform .8s var(--spring), border-radius .6s var(--ios); position: relative; overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.35), transparent 40%); }
.cover.paused { transform: scale(.88); } .cover.enter { animation: coverin .8s var(--spring); } @keyframes coverin { from { opacity: 0; transform: scale(.82) rotate(-4deg); } }
.vinyl { width: min(270px, 58vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; background: repeating-radial-gradient(circle, #090a12 0 3px, #171827 3px 5px); box-shadow: 0 26px 60px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.12); will-change: transform; }
.vinyl::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0, rgba(255,255,255,.2) 12%, transparent 28%, transparent 50%, rgba(255,255,255,.2) 62%, transparent 80%); }
.vinyl .lbl { width: 36%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; transition: background .8s; } .vinyl .lbl::after { content: ""; width: 12%; aspect-ratio: 1; border-radius: 50%; background: #0a0f24; }
.mini-cover { width: 120px; aspect-ratio: 1; border-radius: 30px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 2px 6px rgba(255,255,255,.55), 0 14px 34px rgba(0,0,0,.45); }
.lyrfocus { display: flex; flex-direction: column; gap: 6px; padding: 10px; text-align: left; width: 100%; min-height: 200px; justify-content: center; }
.lyr { font-size: 1.15rem; font-weight: 600; color: var(--t3); transition: color .4s, transform .5s var(--ios), opacity .4s; transform-origin: left center; padding: 4px 2px; text-align: left; width: 100%; cursor: pointer; opacity: .75; } .lyr.on { color: #fff; transform: scale(1.12); opacity: 1; } .lyr.past { opacity: .5; }
.lyrbox { max-height: 380px; overflow-y: auto; scroll-behavior: smooth; padding: 6px 4px; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.seek { position: relative; height: 28px; display: flex; align-items: center; cursor: pointer; touch-action: none; } .seek .tr { position: relative; width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); transition: height .25s var(--spring); } .seek:hover .tr, .seek.drag .tr { height: 10px; } .seek .fl { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: 3px; background: #fff; } .seek .kn { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); transform: scale(0); transition: transform .25s var(--spring); } .seek:hover .kn, .seek.drag .kn, .seek:focus-visible .kn { transform: scale(1); }
.tctl { display: flex; align-items: center; justify-content: center; gap: 10px; } .tctl .play { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,0) 55%), var(--acc); color: var(--on-acc); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 10px 26px rgba(0,0,0,.35); } .tctl .play .ic { transition: transform .45s var(--spring); } .tctl .play.pp .ic { animation: swap .45s var(--spring); } @keyframes swap { from { transform: scale(.5) rotate(-40deg); opacity: 0; } }
.volrow { display: flex; align-items: center; gap: 10px; } .volrow .pc { width: 44px; text-align: right; font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--t2); } .volrow .ic { transition: transform .3s var(--spring); }
.eqbars { display: flex; align-items: flex-end; gap: 3px; height: 18px; } .eqbars i { width: 3px; height: 5px; border-radius: 2px; background: currentColor; } html[data-motion="full"] .eqbars.live i { animation: eqb .9s ease-in-out infinite alternate; } .eqbars i:nth-child(2) { animation-delay: .25s; } .eqbars i:nth-child(3) { animation-delay: .5s; } .eqbars i:nth-child(4) { animation-delay: .1s; } @keyframes eqb { from { height: 4px; } to { height: 18px; } }
canvas.viz { width: 100%; height: 56px; display: block; border-radius: 14px; }
.qrow { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 20px; position: relative; touch-action: pan-y; transition: transform .35s var(--ios), background .3s; user-select: none; background: transparent; } .qrow.cur { background: rgba(255,255,255,.14); } .qrow.drag { z-index: 5; transition: none; box-shadow: 0 16px 34px rgba(0,0,0,.45); background: rgba(60,66,120,.95); } .qrow .th { width: 46px; height: 46px; border-radius: 14px; flex: none; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 3px rgba(255,255,255,.55); display: grid; place-items: center; } .qrow .grip { touch-action: none; cursor: grab; width: 34px; height: 40px; display: grid; place-items: center; color: var(--t3); }
.songcard { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 22px; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); } .songcard .th { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--c1), var(--c2)); flex: none; box-shadow: inset 0 1px 3px rgba(255,255,255,.55); }
.eqwrap { display: flex; gap: 4px; align-items: stretch; height: 210px; } .eqwrap .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; } .eqwrap input[type=range] { writing-mode: vertical-lr; direction: rtl; width: 26px; flex: 1; accent-color: #fff; margin: 0; } .eqwrap span { font-size: .6rem; color: var(--t3); }
.syncmeter { display: flex; align-items: center; gap: 10px; } .syncmeter .bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; position: relative; } .syncmeter .bar i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--acc); transform-origin: left; transition: transform 1s var(--ios); }
.island { position: fixed; top: max(10px, var(--st)); left: 50%; translate: -50% 0; z-index: 90; width: 188px; height: 46px; border-radius: 24px; overflow: hidden; background: rgba(6,8,22,.88); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: width .6s var(--ios), height .6s var(--ios), border-radius .6s var(--ios), opacity .3s, transform .5s var(--ios); display: none; --c1: #7c5cff; --c2: #5eead4; }
.island.show { display: block; animation: islin .6s var(--spring); } @keyframes islin { from { opacity: 0; transform: translateY(-30px) scale(.7); } }
.island.open { width: min(390px, calc(100vw - 20px)); height: 134px; border-radius: 34px; }
.island .cp { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 12px; cursor: pointer; width: 100%; text-align: left; transition: opacity .25s; } .island.open .cp { opacity: 0; pointer-events: none; }
.island .ex { position: absolute; inset: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; opacity: 0; pointer-events: none; transition: opacity .35s .1s; } .island.open .ex { opacity: 1; pointer-events: auto; }
.island .th { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); flex: none; }
.np { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; padding: max(18px, var(--st)) 20px max(20px, var(--sb)); overflow: hidden; --c1: #7c5cff; --c2: #5eead4; background: radial-gradient(100% 70% at 50% 0%, color-mix(in srgb, var(--c1) 75%, #000), transparent 72%), radial-gradient(90% 60% at 80% 100%, color-mix(in srgb, var(--c2) 60%, #000), transparent 70%), #080b1e; transition: --c1 1s ease, --c2 1s ease; will-change: transform, opacity; }
.np .body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; justify-items: center; max-width: 1000px; width: 100%; margin: 0 auto; } @media (min-width: 900px) { .np .body { grid-template-columns: 1fr 1fr; } }
.np .col2 { width: 100%; display: flex; flex-direction: column; gap: 14px; min-height: 0; max-width: 460px; }

/* ---------- Compartido ---------- */
.photos { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); padding: 4px 6px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); padding: 0; } .ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s, transform .6s var(--ease); } .ph img.ld { opacity: 1; } @media (hover: hover) { .ph:hover img { transform: scale(1.06); } } .ph .fv { position: absolute; top: 6px; right: 6px; color: #ff9ccb; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.viewer { position: fixed; inset: 0; z-index: 85; background: rgba(2,4,12,.94); touch-action: none; overflow: hidden; user-select: none; } .viewer .stage2 { position: absolute; inset: 0; display: grid; place-items: center; } .viewer img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: 50% 50%; will-change: transform; -webkit-user-drag: none; } .viewer .vtop, .viewer .vbot { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 14px; z-index: 3; transition: opacity .3s; } .viewer .vtop { top: 0; padding-top: max(14px, var(--st)); } .viewer .vbot { bottom: 0; justify-content: center; padding-bottom: max(14px, var(--sb)); }
.filerow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; width: 100%; text-align: left; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); } .fico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(var(--acc-rgb), .28); border: 1px solid rgba(255,255,255,.3); }
.tl { position: relative; padding: 4px 6px 4px 30px; display: flex; flex-direction: column; gap: 14px; } .tl::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--acc), rgba(255,255,255,.1)); border-radius: 1px; }
.tl .it { position: relative; border-radius: 24px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; } .tl .it::before { content: ""; position: absolute; left: -23px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .3); } .tl .it.pre { opacity: 0; transform: translateY(26px); } .tl .it.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); } .tl img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 16px; }
.todo { display: flex; align-items: center; gap: 12px; min-height: 44px; width: 100%; text-align: left; border-radius: 14px; } .todo .cb { width: 26px; height: 26px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,.7); display: grid; place-items: center; flex: none; transition: background .3s, transform .3s var(--spring); } .todo[aria-checked="true"] .cb { background: var(--acc); color: var(--on-acc); border-color: #fff; } .todo[aria-checked="true"] .tx { text-decoration: line-through; color: var(--t3); }
.ringwrap { position: relative; width: min(230px, 62vw); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto; } .ringwrap svg { position: absolute; inset: 0; transform: rotate(-90deg); width: 100%; height: 100%; } .ringwrap .tm { font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* ---------- Pizarra ---------- */
.boardwrap { flex: 1; min-height: 0; position: relative; border-radius: 28px; overflow: hidden; background-color: rgba(8,12,32,.5); background-image: radial-gradient(rgba(255,255,255,.2) 1.5px, transparent 1.5px); background-size: 26px 26px; touch-action: none; }
.bstage { position: absolute; left: 0; top: 0; width: 1600px; height: 1000px; transform-origin: 0 0; touch-action: none; } .bstage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bnote { position: absolute; width: 230px; min-height: 120px; border-radius: 22px; padding: 0; display: flex; flex-direction: column; box-shadow: 0 14px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.4); animation: pop .45s var(--spring); } .bnote .gr { height: 26px; cursor: grab; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 12px; color: rgba(255,255,255,.8); touch-action: none; } .bnote textarea { flex: 1; background: transparent; border: 0; outline: none; resize: none; padding: 4px 14px 14px; color: #fff; font-size: 1rem; line-height: 1.4; min-height: 90px; } .btext { position: absolute; background: transparent; border: 1px dashed rgba(255,255,255,.3); border-radius: 10px; color: #fff; font-size: 28px; font-weight: 600; outline: none; padding: 4px 8px; resize: none; min-width: 120px; }
.btools { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 34px; z-index: 5; max-width: calc(100% - 20px); overflow-x: auto; scrollbar-width: none; }
.cdot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); flex: none; } .cdot.on { border-color: #fff; transform: scale(1.2); box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.arisim { position: absolute; z-index: 4; pointer-events: none; display: flex; gap: 4px; align-items: flex-start; color: #ff8fb1; transition: transform 2.4s var(--ios); }

/* ---------- Ajustes ---------- */
.setgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); padding: 4px 6px; align-items: start; }
.srow { display: flex; align-items: center; gap: 14px; min-height: 48px; } .srow .tx { flex: 1; min-width: 0; } .srow .tx b { display: block; font-size: .94rem; font-weight: 600; } .srow .tx small { color: var(--t3); font-size: .78rem; display: block; line-height: 1.35; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; } .swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); box-shadow: inset 0 2px 4px rgba(255,255,255,.55); position: relative; } .swatch.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.4), inset 0 2px 4px rgba(255,255,255,.55); transform: scale(1.1); }
.bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; } .bgs button { height: 64px; border-radius: 16px; border: 2px solid rgba(255,255,255,.25); position: relative; overflow: hidden; display: grid; place-items: end start; padding: 6px 8px; font-size: .72rem; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.7); } .bgs button.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.bubprev { display: flex; flex-direction: column; gap: 4px; }
.meter { height: 8px; border-radius: 4px; background: rgba(255,255,255,.16); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--acc); border-radius: 4px; }
.check { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .9rem; } .check:last-child { border: 0; }
.lock { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: radial-gradient(80% 60% at 50% 0%, #2a1c6a, transparent 70%), #070a1c; padding: 20px; } .lock[hidden] { display: none; }
.keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px; justify-content: center; } .keypad button { width: 72px; height: 72px; border-radius: 50%; font-size: 1.5rem; font-weight: 600; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); } .pindots { display: flex; gap: 14px; justify-content: center; margin: 18px 0; } .pindots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; transition: background .2s, transform .3s var(--spring); } .pindots i.f { background: #fff; transform: scale(1.15); } .shake { animation: shake .45s; } @keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.spot { position: absolute; left: 50%; top: 9vh; translate: -50% 0; width: min(640px, calc(100% - 20px)); max-height: 80%; display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; background: linear-gradient(140deg, rgba(44,50,100,.9), rgba(24,28,62,.92)); transform-origin: var(--ox, 50%) var(--oy, 0); } .spot .sin { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.12); } .spot .sin input { flex: 1; background: none; border: 0; outline: none; font-size: 1.1rem; min-height: 38px; min-width: 0; } .spot .res { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; } .spot .grp { padding: 10px 12px 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); font-weight: 700; } .spot .ri { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 16px; width: 100%; text-align: left; min-height: 46px; } .spot .ri.sel, .spot .ri:hover { background: rgba(255,255,255,.16); } .spot .ri mark { background: #ffe066; color: #1a1500; border-radius: 3px; }
kbd { display: inline-block; min-width: 24px; padding: 2px 7px; border-radius: 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); font: 600 .74rem ui-monospace, Menlo, monospace; text-align: center; }
.nitem { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 20px; width: 100%; text-align: left; position: relative; } .nitem.unread::after { content: ""; position: absolute; right: 14px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); }
.bars7 { display: flex; align-items: flex-end; gap: 8px; height: 90px; } .bars7 .bc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; } .bars7 i { width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: var(--acc); min-height: 3px; transition: height .8s var(--ios); }

/* ---------- Movimiento: modos ---------- */
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation-iteration-count: 1 !important; animation-duration: .25s !important; transition-duration: .2s !important; scroll-behavior: auto !important; }
html[data-motion="reduced"] .waves i, html[data-motion="reduced"] .eqbars i { animation: none !important; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="off"] .skel { background: rgba(255,255,255,.12); }

/* ---------- Ajustes finos de móvil ---------- */
@media (max-width: 719px) {
  body.has-island .shell { padding-top: 62px; }
  .chat-top { flex-wrap: nowrap; } .chat-top .nm { font-size: .95rem; }
}
@media (max-width: 560px) {
  .composer { flex-wrap: wrap; align-items: center; padding: 8px 10px; }
  .composer .ta { flex: 1 1 100%; order: -1; min-height: 40px; padding: 8px 6px; }
  .composer > .ibtn[aria-label="Enviar"], .composer > .ibtn[aria-label="Grabar nota de voz"] { margin-left: auto; }
  .vh h1 { font-size: 1.7rem; }
}
.chat-top .grow { min-width: 0; } .chat-top .grow > .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .srow { flex-wrap: wrap; row-gap: 8px; } .srow .tx { flex: 1 1 150px; } .srow .seg { max-width: 100%; overflow-x: auto; } .demotag { display: none; } }
/* Fase 1 · código de invitación */
.invcode { font: 700 clamp(1.6rem, 7vw, 2.2rem)/1.1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-align: center; padding: 16px 12px; border-radius: 18px; user-select: all; }
.notice.hide { display: none; }
/* Fase 2 · estados de envío reales */
.status-ic.sent { opacity: .8; }
.status-ic.delivered { opacity: .9; }
.status-ic.read { color: var(--acc); opacity: 1; }
.status-ic.failed { color: var(--bad, #ff6b6b); }
.status-ic .ic.dbl { margin-left: -9px; }
/* Fase 3 · subida de adjuntos */
.upbox { display: grid; gap: 6px; margin-top: 6px; min-width: 200px; font-size: .78rem; }
.upbar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.upbar i { display: block; height: 100%; background: currentColor; transform-origin: left center; transform: scaleX(0); }
html[data-motion="full"] .upbar i { transition: transform .2s linear; }
.meter.warn i { background: var(--warn); } .meter.full i { background: var(--bad); }
