/* Memoria de Reuniones — lenguaje visual "Silicon Valley" del stack:
   navy profundo + aurora viva + vidrio + acentos azul/cian con glow. */

:root {
  --bg: #080a12; --bg2: #0c0f1b;
  --panel: #111524; --panel2: #151a2c;
  --line: #232a44; --line2: #2e3760;
  --ink: #eef1ff; --sub: #c3caea; --muted: #8b93bb; --faint: #5a6285;
  --blue: #5b8cff; --blue-glow: #7aa6ff; --cyan: #31e0f2;
  --coral: #ff5d78; --ok: #39d98a; --gold: #ffc857;
  --eout: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
::selection { background: rgba(91, 140, 255, .32); color: #fff; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'ss01';
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: linear-gradient(180deg, #070912, #0a0d18 55%, #080b14);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── fondo vivo: aurora + grano + viñeta ─────────────────────────── */
.aura { position: fixed; inset: 0; z-index: 0; overflow: hidden; filter: blur(70px); pointer-events: none; }
.aura span {
  position: absolute; border-radius: 50%; opacity: .2; mix-blend-mode: screen;
  will-change: transform; animation: drift 26s ease-in-out infinite;
}
.aura span:nth-child(1) { width: 48vw; height: 48vw; left: -10vw; top: -14vh; background: radial-gradient(circle, #2f5bff, transparent 64%); }
.aura span:nth-child(2) { width: 42vw; height: 42vw; right: -12vw; top: -4vh; background: radial-gradient(circle, #ff3d6e, transparent 66%); animation-delay: -8s; }
.aura span:nth-child(3) { width: 46vw; height: 46vw; left: 26vw; bottom: -24vh; background: radial-gradient(circle, #15d6e6, transparent 64%); animation-delay: -15s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(7vw, 5vh) scale(1.12); }
  66% { transform: translate(-6vw, -4vh) scale(.94); }
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 240px rgba(0, 0, 0, .55), inset 0 0 70px rgba(0, 0, 0, .35);
}

/* ── utilidades ──────────────────────────────────────────────────── */
.oculto { display: none !important; }
.stage { position: relative; z-index: 2; min-height: 100dvh; display: grid; place-items: center; padding: 40px 20px; }
.app { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 18px 20px 120px; }

.vidrio {
  background: linear-gradient(180deg, rgba(20, 25, 43, .66), rgba(12, 16, 29, .5));
  border: 1px solid rgba(122, 166, 255, .13);
  border-radius: 24px;
  position: relative;
  box-shadow: 0 50px 130px -40px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .05) inset,
              0 0 60px -20px rgba(49, 224, 242, .14);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}
.vidrio::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(122, 166, 255, .35), transparent 40%, transparent 70%, rgba(49, 224, 242, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8;
}

@keyframes entrar { from { opacity: 0; transform: translateY(16px) scale(.99); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes subir { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.anim { animation: entrar .5s var(--eout); }

.eyebrow {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
  font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.big {
  font-size: clamp(26px, 5vw, 38px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700;
  text-wrap: balance;
}
.big .g {
  background: linear-gradient(100deg, var(--blue-glow), var(--cyan) 65%, #a9f3ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--sub); font-size: 16px; line-height: 1.55; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; }

/* ── marca ───────────────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; font-size: 15px; }
.brand .m {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 6px 20px rgba(49, 224, 242, .32), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.brand small { color: var(--muted); font-weight: 600; font-size: 12px; display: block; letter-spacing: 0; }

/* ── campos y botones ────────────────────────────────────────────── */
input[type=text], input[type=password], input[type=search] {
  width: 100%; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px; color: var(--ink); font-size: 16px; letter-spacing: -.01em;
  padding: 15px 17px; font-family: inherit; caret-color: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 2px 6px rgba(0, 0, 0, .22);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder { color: var(--faint); }
input:focus {
  outline: none; border-color: var(--blue); background: rgba(255, 255, 255, .04);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, .25), 0 0 22px rgba(91, 140, 255, .15);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(180deg, #6b96ff, var(--blue)); color: #fff; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; padding: 14px 24px; cursor: pointer;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px -6px rgba(91, 140, 255, .5);
  transition: transform .12s var(--eout), box-shadow .2s, filter .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.btn.lleno { width: 100%; }
.btn.fantasma {
  background: rgba(255, 255, 255, .03); color: var(--sub); box-shadow: none;
  border: 1px solid rgba(255, 255, 255, .09); font-weight: 500;
}
.btn.fantasma:hover { color: var(--ink); background: rgba(255, 255, 255, .07); border-color: var(--line2); }
.btn.peligro { background: none; box-shadow: none; border: 1px solid rgba(255, 93, 120, .3); color: var(--coral); }
.btn.peligro:hover { background: rgba(255, 93, 120, .1); }

.hint { color: var(--coral); font-size: 14px; min-height: 20px; }
.hint.temblor { animation: temblar .4s; }
@keyframes temblar { 10%, 90% { transform: translateX(-1px); } 30%, 70% { transform: translateX(3px); } 50% { transform: translateX(-4px); } }

/* ── login ───────────────────────────────────────────────────────── */
#login .vidrio { width: min(430px, 92vw); padding: 40px 36px 34px; display: grid; gap: 16px; }
#login .brand { margin-bottom: 8px; }
#login .chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  font-size: 12.5px; color: var(--sub); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.chip.mini { font-size: 11.5px; padding: 4px 10px; }

/* ── barra superior ──────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 9; display: flex; align-items: center; gap: 12px;
  padding: 14px 0 16px; margin-bottom: 6px;
  background: linear-gradient(180deg, rgba(8, 10, 18, .92), rgba(8, 10, 18, .55) 70%, transparent);
  backdrop-filter: blur(10px);
}
.topbar .brand { cursor: pointer; }
.topbar .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.topbar input[type=search] { width: min(230px, 38vw); padding: 10px 14px; font-size: 14px; }
.topbar .btn { padding: 10px 14px; font-size: 14px; }

/* ── panel de grabar ─────────────────────────────────────────────── */
.hero { padding: 30px 28px; margin-bottom: 18px; }
.hero .eyebrow { margin-bottom: 14px; }
.entrada-grande {
  font-size: 19px !important; font-weight: 600; letter-spacing: -.02em; padding: 6px 0 !important;
  background: none !important; border: none !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important; box-shadow: none !important; margin-bottom: 22px;
}
.entrada-grande:focus { border-bottom-color: var(--blue) !important; box-shadow: 0 1px 0 var(--blue) !important; }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } }
.opt {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px 16px; cursor: pointer; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 15px; position: relative;
  transition: transform .18s var(--eout), border-color .18s, box-shadow .18s, background .18s;
}
.opt:hover { border-color: rgba(122, 166, 255, .5); transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(91, 140, 255, .5); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .ic {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 17px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); transition: all .18s;
}
.opt b { font-size: 15px; font-weight: 650; letter-spacing: -.01em; display: block; }
.opt small { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; margin-top: 3px; }
.opt.sel {
  border-color: var(--blue); background: linear-gradient(180deg, rgba(91, 140, 255, .18), rgba(91, 140, 255, .05));
  box-shadow: 0 14px 34px -14px rgba(91, 140, 255, .6), 0 0 0 1px rgba(91, 140, 255, .4) inset;
}
.opt.sel .ic { background: linear-gradient(135deg, var(--cyan), var(--blue)); border-color: transparent; box-shadow: 0 6px 18px rgba(49, 224, 242, .35); }

.acciones-hero { display: flex; gap: 10px; align-items: center; }
.btn.rec {
  flex: 1; background: linear-gradient(180deg, #ff7186, var(--coral)); font-size: 16px; padding: 16px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 30px -8px rgba(255, 93, 120, .6);
}
.btn.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .9); }
.pie-nota { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ── grabando ────────────────────────────────────────────────────── */
.grabando { padding: 26px 28px; margin-bottom: 18px; border-color: rgba(255, 93, 120, .35) !important; }
.grabando::before { background: linear-gradient(160deg, rgba(255, 93, 120, .45), transparent 45%, rgba(255, 93, 120, .15)); }
.rec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rec-head .eyebrow { color: var(--coral); }
.pulso { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 93, 120, .6); animation: latir 1.6s infinite; }
@keyframes latir { 0% { box-shadow: 0 0 0 0 rgba(255, 93, 120, .55); } 70% { box-shadow: 0 0 0 12px rgba(255, 93, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 93, 120, 0); } }
.reloj {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums;
  font-size: clamp(38px, 9vw, 54px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 18px;
  background: linear-gradient(100deg, var(--blue-glow), var(--cyan) 70%, #a9f3ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nivel { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.nivel > span { width: 56px; font-size: 12px; color: var(--muted); font-weight: 600; flex: none; }
.vu { flex: 1; height: 30px; display: flex; align-items: center; gap: 3px; }
.vu i {
  flex: 1; height: 3px; min-height: 3px; border-radius: 3px; background: var(--line2);
  transition: height .08s linear, background .2s, box-shadow .2s;
}
.vu.viva i { background: linear-gradient(180deg, var(--cyan), var(--blue)); box-shadow: 0 0 8px rgba(49, 224, 242, .4); }
.alerta {
  background: rgba(255, 200, 87, .08); border: 1px solid rgba(255, 200, 87, .35); color: var(--gold);
  padding: 11px 14px; border-radius: 12px; font-size: 13.5px; margin: 12px 0; line-height: 1.45;
}
.btn.parar { width: 100%; margin-top: 8px; background: none; border: 1px solid rgba(255, 93, 120, .45); color: var(--coral); box-shadow: none; }
.btn.parar:hover { background: rgba(255, 93, 120, .12); }

/* ── lista ───────────────────────────────────────────────────────── */
.lista-head { display: flex; align-items: center; gap: 10px; margin: 26px 4px 12px; }
.lista-head h2 { font-size: 14px; font-weight: 650; letter-spacing: -.01em; color: var(--sub); }
.lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.item {
  display: flex; gap: 14px; align-items: center; padding: 15px 17px; cursor: pointer; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;
  transition: transform .18s var(--eout), border-color .18s, box-shadow .18s;
  animation: subir .4s var(--eout) both;
}
.item:hover { transform: translateY(-2px); border-color: rgba(122, 166, 255, .45); box-shadow: 0 14px 34px -16px rgba(91, 140, 255, .55); }
.item .av {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2);
}
.item .txt { flex: 1; min-width: 0; }
.item b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* botón lápiz: cambiarle el nombre sin entrar a la reunión */
.item .ren {
  width: 34px; height: 34px; padding: 0; flex: none; font-size: 13px; border-radius: 10px;
  opacity: 0; transition: opacity .18s, color .18s, border-color .18s;
}
.item:hover .ren, .item .ren:focus { opacity: 1; }
@media (hover: none) { .item .ren { opacity: .6; } }
.item input { font-size: 15px !important; padding: 8px 10px !important; }

.estado { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .03); white-space: nowrap; }
.estado i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.estado.listo { color: var(--ok); border-color: rgba(57, 217, 138, .35); }
.estado.trabajando { color: var(--cyan); border-color: rgba(49, 224, 242, .35); }
.estado.trabajando i { animation: parpadeo 1.2s infinite; }
.estado.error { color: var(--coral); border-color: rgba(255, 93, 120, .35); }
@keyframes parpadeo { 50% { opacity: .25; } }

.vacio { text-align: center; padding: 44px 20px; color: var(--muted); }
.vacio .em { font-size: 34px; display: block; margin-bottom: 12px; opacity: .55; }
.hueso { height: 68px; border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200% 100%; animation: brillo 1.4s infinite; }
@keyframes brillo { to { background-position: -200% 0; } }

/* ── detalle ─────────────────────────────────────────────────────── */
.detalle { padding: 30px 28px 26px; }
@media (max-width: 560px) { .hero, .grabando, .detalle { padding: 24px 20px; } }
#detTitulo { outline: none; margin: 10px 0 12px; }
#detTitulo:focus { box-shadow: 0 2px 0 var(--blue); }
.metachips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
/* reproductor propio (el nativo se ve gris y fuera de estilo) */
.reproductor {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px;
}
.reproductor audio { display: none; }
.pbtn {
  width: 38px; height: 38px; flex: none; border: none; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #061018; font-size: 13px;
  display: grid; place-items: center; padding-left: 2px;
  box-shadow: 0 6px 20px -4px rgba(49, 224, 242, .5);
  transition: transform .12s var(--eout), filter .2s;
}
.pbtn:hover { transform: scale(1.06); filter: brightness(1.08); }
.pbtn.sonando { padding-left: 0; }
.ptime {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums;
  font-size: 12px; color: var(--muted); flex: none;
}
.ppista { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); cursor: pointer; position: relative; }
.ppista::after { content: ""; position: absolute; inset: -9px 0; }
.ppista i {
  display: block; height: 100%; width: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(49, 224, 242, .5);
}
.pvel {
  flex: none; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--sub);
  border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all .18s;
}
.pvel:hover { color: var(--ink); border-color: var(--blue); }
@media (max-width: 460px) { .reproductor { gap: 8px; padding: 9px 11px; } .ptime { font-size: 11px; } }

.tabs { display: flex; gap: 2px; margin: 18px 0 16px; padding: 4px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; }
.tab { flex: 1; background: none; border: 0; color: var(--muted); padding: 9px 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; border-radius: 9px; font-family: inherit; transition: all .18s var(--eout); }
.tab:hover { color: var(--sub); }
.tab.activa { color: var(--ink); background: linear-gradient(180deg, rgba(91, 140, 255, .28), rgba(91, 140, 255, .12)); box-shadow: 0 6px 18px -8px rgba(91, 140, 255, .8); }

.panel { font-size: 15px; line-height: 1.6; color: var(--sub); animation: subir .35s var(--eout); }
.panel h2 { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 700; margin: 24px 0 10px; }
.panel h2:first-child { margin-top: 4px; }
.panel h3 { font-size: 15px; color: var(--ink); margin: 16px 0 6px; }
.panel p { margin: 8px 0; }
.panel b { color: var(--ink); font-weight: 650; }
.panel ul { list-style: none; padding: 0; margin: 8px 0; }
.panel li { position: relative; padding-left: 18px; margin: 7px 0; }
.panel li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px rgba(91, 140, 255, .8); }
.panel table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0; font-size: 13.5px; display: block; overflow-x: auto; }
.panel th, .panel td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.panel th { color: var(--muted); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; background: rgba(255, 255, 255, .03); }
.panel tr:last-child td { border-bottom: 0; }

.linea { display: flex; gap: 12px; padding: 7px 10px; border-radius: 10px; transition: background .2s; }
.linea time { color: var(--blue-glow); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; font-size: 12.5px; cursor: pointer; flex: none; padding-top: 2px; opacity: .75; transition: opacity .2s; }
.linea time:hover { opacity: 1; text-decoration: underline; }
.linea .quien { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; flex: none; width: 46px; padding-top: 3px; }
.linea .quien.yo { color: var(--cyan); }
.linea .quien.ellos { color: var(--coral); }
.linea.activa { background: rgba(91, 140, 255, .12); box-shadow: inset 2px 0 0 var(--blue); }

#formPregunta { display: flex; gap: 8px; margin-bottom: 14px; }
#formPregunta input { flex: 1; }
.sugerencias { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.sugerencias .chip { cursor: pointer; transition: all .18s; }
.sugerencias .chip:hover { color: var(--ink); border-color: var(--blue); background: rgba(91, 140, 255, .12); }
.pie { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

.puntos::after { content: ""; animation: puntos 1.4s infinite; }
@keyframes puntos { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ── avisos flotantes ────────────────────────────────────────────── */
#avisos { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 40; display: grid; gap: 8px; width: min(420px, 92vw); }
.aviso {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.4;
  background: linear-gradient(180deg, rgba(21, 27, 46, .97), rgba(13, 17, 30, .97));
  border: 1px solid var(--line2); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  animation: entrar .35s var(--eout);
}
.aviso .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 15px; }
.aviso.ok { border-color: rgba(57, 217, 138, .45); }
.aviso.ok .ic { background: linear-gradient(135deg, #6ee7a8, var(--ok)); color: #052414; }
.aviso.mal { border-color: rgba(255, 93, 120, .45); }
.aviso.mal .ic { background: linear-gradient(135deg, #ff8fa1, var(--coral)); color: #2a0710; }
.aviso.info .ic { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #061018; }

/* ── celular ─────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .app { padding: 14px 14px 90px; }
  .topbar { flex-wrap: wrap; padding-bottom: 12px; }
  .topbar .brand small { display: none; }
  .topbar input[type=search] { width: 100%; }
  .topbar .tools { width: 100%; margin-left: 0; }
  .topbar .tools input { flex: 1; }
  .acciones-hero { flex-direction: column; }
  .acciones-hero .btn { width: 100%; }
  .item { gap: 11px; padding: 13px 14px; }
  .item .av { width: 34px; height: 34px; }
  .estado { font-size: 11px; padding: 4px 9px; }
  .linea .quien { width: 40px; }
  #login .vidrio { padding: 32px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .aura span, .item, .panel, .aviso, .anim, .hueso { animation: none !important; }
  * { transition: none !important; }
}
