/* ============ Barra superior (una línea) ============ */
.container--wide { max-width: none; } /* el dashboard llena toda la ventana */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(var(--bg-rgb), .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 10px; padding-bottom: 10px; }
.topbar__search { position: relative; flex: 1 1 280px; min-width: 0; max-width: 560px; margin: 0 auto; }
.gsearch__field { height: 42px; border-radius: 999px; background: var(--surface); }
.gsearch__field input { font-size: 14px; }
.gsearch__field kbd { flex: none; font: 600 12px var(--font); padding: 3px 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.topbar__tools { flex: none; margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pop-anchor { position: relative; }
.avatar--btn { width: 42px; height: 42px; border: 2px solid var(--primary); cursor: pointer; font-size: 14px; transition: transform .18s var(--ease); }
.avatar--btn:hover { transform: translateY(-2px); }
.clock-chip { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; }
.clock-chip b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============ Estructura ============ */
.dash { padding-top: 16px; padding-bottom: 16px; display: flex; flex-direction: column; gap: 16px; }
.dash .card { padding: 20px; }
.dash__row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 24vw, 420px); gap: 16px; align-items: start; }
.dash__main, .dash__aside { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.scroll-y { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.cap { text-transform: capitalize; }
.hl { color: var(--primary-text); }
.chip--lg { padding: 8px 12px; font-size: 13px; font-weight: 500; }
.chip--sky { background: rgba(67, 191, 253, .12); color: var(--sky-ink); }
.chip--orange { background: rgba(255, 135, 78, .12); color: var(--orange-ink); }
.dot--live { background: var(--danger); animation: pulse 2s infinite; width: 10px; height: 10px; }
.btn--xs { width: 32px; min-height: 32px; border-radius: 10px; }

/* Escritorio: el dashboard ocupa exactamente la ventana. Si un panel no cabe, hace scroll por dentro.
   Por debajo de este tamaño se vuelve al flujo normal con scroll de página. */
@media (min-width: 1100px) and (min-height: 640px) {
  .dash-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  .dash-page .topbar { position: relative; flex: none; }
  .dash { flex: 1; min-height: 0; width: 100%; }
  .dash__row { flex: 1; min-height: 0; align-items: stretch; }
  .dash__main, .dash__aside { min-height: 0; }
  /* El board mide lo que piden sus filas (fitBoard en dashboard.js); los documentos se quedan el resto */
  .board { flex: none; display: flex; flex-direction: column; }
  .docs-card { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .docs-list { min-height: 0; align-content: start; }
  .agenda-card { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .agenda { flex: 1; min-height: 0; }
}

/* ============ Franja de avisos ============ */
.ticker {
  --lvl: var(--primary); --lvl-bg: transparent;
  position: relative; z-index: 6; flex: none; display: flex; align-items: center; gap: 16px;
  padding: 12px 12px 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 4px solid var(--lvl);
  background: linear-gradient(90deg, var(--lvl-bg), transparent 70%), var(--surface);
  transition: border-color .4s;
}
.ticker__current { flex: 1; min-width: 0; }
.notice { display: flex; align-items: center; gap: 14px; min-width: 0; animation: slideIn .5s var(--ease) both; }
.notice__level { flex: none; letter-spacing: .06em; text-transform: uppercase; }
.notice__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notice h3, .notice p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice h3 { font-size: 16px; font-weight: 600; }
.notice p { font-size: 13px; color: var(--text-2); }
.notice p span { color: var(--muted); }
.notice__actions { flex: none; display: flex; gap: 8px; }
.notice__actions .btn { min-height: 38px; }
.ticker__ctrl { flex: none; display: flex; align-items: center; gap: 2px; padding-left: 12px; border-left: 1px solid var(--line); }
.ticker__ctrl .btn--icon { width: 36px; min-height: 36px; }
.ticker__count { min-width: 34px; margin-right: 2px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticker__dots { position: absolute; left: 18px; right: 16px; bottom: 5px; display: flex; gap: 6px; height: 3px; }
.ticker__dots > span { flex: 1; border-radius: 99px; background: var(--surface-3); overflow: hidden; transition: flex .4s var(--ease); }
.ticker__dots > span.on { flex: 3; }
.ticker__dots i { display: block; height: 100%; background: var(--lvl); }
.ticker__pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 25; width: min(400px, calc(100vw - 32px));
  max-height: min(460px, calc(100vh - 160px)); overflow-y: auto; padding: 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; gap: 10px; transform-origin: top right; animation: popIn .32s cubic-bezier(.3, 1.3, .5, 1) both;
}
.ticker__pop[hidden] { display: none; }
.notices__list { display: flex; flex-direction: column; gap: 6px; }
.notice-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid rgba(var(--ink), .05); background: transparent; color: var(--text); text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.notice-item:hover { background: rgba(var(--ink), .05); }
.notice-item.on { background: var(--surface-2); border-color: rgba(var(--ink), .12); }
.notice-item .dot { margin-top: 7px; flex: none; }
.notice-item b { display: block; font-size: 14px; font-weight: 500; }
.notice-item small { font-size: 12px; color: var(--muted); }
.notice-item.unread b { font-weight: 700; }

/* ============ Saludo + board de apps ============ */
.board__head { align-items: flex-end; }
.board__greet { font-size: clamp(26px, 2.1vw, 34px); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.board__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.board__hint { margin: -4px 0 12px; font-size: 13px; }
.board__hint:empty { display: none; }
.board__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); grid-auto-rows: 132px; grid-auto-flow: dense; align-content: start; gap: 14px; padding: 6px 4px 4px; margin: -6px -4px -4px; }
.tile {
  position: relative; height: 100%; padding: 16px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid rgba(var(--ink), .06);
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  cursor: grab; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, opacity .2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px var(--shadow); border-color: rgba(var(--ink), .16); }
.tile--big { grid-column: span 2; }
.tile.dragging { opacity: .35; }
.tile.over { border-color: var(--primary); }
.board.editing .tile { animation: wiggle .35s ease-in-out infinite; border-style: dashed; border-color: rgba(var(--ink), .18); }
.tile__top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile__badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #0E121B; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.tile__tools { display: none; gap: 6px; }
.board.editing .tile__tools { display: flex; }
.board.editing .tile__badge { display: none; }
.tile__tools button { width: 32px; height: 32px; min-height: 32px; border-radius: 10px; padding: 0; }
.tile b { display: block; font-size: 16px; font-weight: 600; }
.tile small { font-size: 13px; color: var(--muted); }
/* Poco alto disponible: tarjetas más compactas */
.board--compact .tile { padding: 12px 14px; gap: 6px; }
.board--compact .tile-icon { width: 36px; height: 36px; border-radius: 11px; }
.board--compact .tile-icon svg { width: 20px; height: 20px; }
.board--compact .tile b { font-size: 15px; }
.board--compact .tile small { font-size: 12px; }
.board--compact .tile-add span { width: 36px; height: 36px; }
.tile-add { height: 100%; border-radius: 18px; border: 1.5px dashed rgba(var(--ink), .14); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: border-color .2s, color .2s; }
.tile-add:hover { border-color: var(--primary); color: var(--text); }
.tile-add span { width: 44px; height: 44px; border-radius: 999px; background: var(--surface-2); display: grid; place-items: center; color: var(--primary-text); }

/* ============ Semana y agenda ============ */
.week__nav { display: flex; align-items: center; gap: 4px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; }
.week__day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 11px; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); cursor: pointer; transition: background .2s; }
.week__day small { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.week__day b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.week__day:hover { background: rgba(var(--ink), .08); }
.week__day.sel { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--primary); }
.week__day.today { background: var(--primary); color: #0E121B; }
.week__day.today small { color: rgba(14, 18, 27, .7); }
.week__day.today.sel { box-shadow: none; }
.week__day i { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.week__day.today i { background: #0E121B; }
.month-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; margin: -4px -8px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background .2s; }
.month-btn:hover, .month-btn[aria-expanded="true"] { background: rgba(var(--ink), .08); }
.month-btn svg { color: var(--muted); transform: rotate(90deg); transition: transform .25s var(--ease); }
.month-btn[aria-expanded="true"] svg { transform: rotate(-90deg); }
.month-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--primary); }
.month-pop {
  position: absolute; left: -8px; top: calc(100% + 10px); z-index: 25; width: 320px; padding: 14px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
  transform-origin: top left; animation: popIn .32s cubic-bezier(.3, 1.3, .5, 1) both;
}
.month-pop[hidden] { display: none; }
.month-pop__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.month-pop__head b { font-size: 15px; font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.cal__wd { font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.cal__day { position: relative; aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s; }
.cal__day:hover { background: rgba(var(--ink), .08); }
.cal__day.sel { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--primary); }
.cal__day.today { background: var(--primary); color: #0E121B; font-weight: 700; box-shadow: none; }
.cal__day i { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cal__day.today i { background: #0E121B; }
.agenda-card__day { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.agenda-card__day .muted { font-size: 13px; }
.timeline { position: relative; flex: none; height: 26px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.timeline span { position: absolute; top: 5px; bottom: 5px; border-radius: 5px; opacity: .85; }
.timeline .now { top: 0; bottom: 0; width: 2px; background: var(--text); opacity: 1; box-shadow: 0 0 10px rgba(var(--ink), .5); border-radius: 0; }
.timeline__labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin: 5px 0 12px; }
.agenda { display: flex; flex-direction: column; gap: 8px; margin: 0 -4px; padding: 0 4px; }
.meet { display: flex; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid rgba(var(--ink), .05); animation: fadeUp .4s var(--ease) both; }
.meet.done { opacity: .5; }
.meet.live { background: rgba(0, 194, 110, .08); border-color: rgba(0, 194, 110, .35); }
.meet__bar { flex: none; width: 4px; border-radius: 4px; }
.meet__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.meet__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.meet__time { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.meet__title { font-size: 15px; font-weight: 500; }
.meet__place { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.meet__live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); }
.empty { padding: 18px; text-align: center; border-radius: 14px; background: var(--surface-2); color: var(--muted); }

/* ============ Documentos ============ */
.docs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 12px; margin: 0 -8px; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; transition: background .2s; }
.doc-row:hover { background: rgba(var(--ink), .05); }
.doc-row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.doc-row__txt b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-row__txt small { font-size: 12px; color: var(--muted); }
.doc-row .btn--icon { width: 36px; min-height: 36px; }
.doc-ext { position: relative; flex: none; width: 34px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.doc-ext svg { position: absolute; top: 4px; }
.doc-ext b { margin-top: 16px; }

/* ============ Notificaciones ============ */
.notif__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 12px; }
.notif__head h2 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.notif__tabs { padding: 0 18px 12px; }
.notif__list { padding: 0 8px 8px; max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.notif-row { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 10px; border: 0; border-radius: 14px; background: transparent; color: var(--text); cursor: pointer; animation: fadeUp .35s var(--ease) both; transition: background .2s; }
.notif-row:hover { background: rgba(var(--ink), .05); }
.notif-row.unread { background: rgba(67, 191, 253, .06); }
.notif-row.unread b { font-weight: 600; }
.notif-row b { display: block; font-size: 14px; line-height: 1.35; font-weight: 400; }
.notif-row small { font-size: 12px; color: var(--muted); }
.notif__foot { padding: 10px 18px 16px; border-top: 1px solid var(--line); }

/* ============ Perfil ============ */
.profile__cover { position: relative; height: 128px; background: radial-gradient(120% 140% at 0% 0%, rgba(67, 191, 253, .45), rgba(67, 191, 253, 0) 60%), radial-gradient(120% 140% at 100% 0%, rgba(255, 135, 78, .35), rgba(255, 135, 78, 0) 60%), var(--surface-2); }
.profile__close { position: absolute; top: 14px; right: 14px; background: rgba(var(--bg-rgb), .6); }
.profile__body { position: relative; padding: 0 24px 24px; margin-top: -56px; display: flex; flex-direction: column; gap: 20px; }
.profile__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.profile__photo { width: 112px; height: 112px; border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--primary); font-size: 36px; font-weight: 600; }
.profile__actions { display: flex; gap: 8px; padding-bottom: 6px; }
.profile__data { margin: 0; border-radius: 18px; background: var(--surface-2); overflow: hidden; }
.profile__data > div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
.profile__data > div:first-child { border-top: 0; }
.profile__data dt { font-size: 12px; color: var(--muted); }
.profile__data dd { margin: 0; font-size: 15px; font-weight: 500; }
.profile__data .ico { flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--surface); color: var(--muted); display: grid; place-items: center; }


@media (max-width: 1099px) {
  .dash__row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ticker { flex-wrap: wrap; }
  .ticker__ctrl { margin-left: auto; }
  .notice { flex-wrap: wrap; }
  .notice__txt { flex-basis: 100%; order: 1; }
  .notice__actions { order: 2; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .topbar__row { column-gap: 10px; }
  .topbar__tools { gap: 6px; }
  .topbar .lang-group { padding: 3px 3px 3px 3px; }
  .topbar .lang-group__globe { display: none; }
  .topbar .lang-group .seg__btn { width: 36px; height: 32px; font-size: 12px; }
  .topbar .theme-toggle { width: 64px; height: 40px; }
  .topbar .theme-toggle__knob { width: 32px; height: 32px; top: 3px; left: 3px; }
  [data-theme="light"] .topbar .theme-toggle__knob { transform: translateX(24px) rotate(360deg); }
  .topbar .theme-toggle__ghost--moon { left: 9px; }
  .topbar .theme-toggle__ghost--sun { right: 9px; }
  .topbar #bell, .avatar--btn { width: 40px; height: 40px; min-height: 40px; }
  .topbar .logo { height: 24px !important; }
  .topbar__search { order: 3; flex-basis: 100%; max-width: none; }
  .gsearch__field kbd { display: none; }
  .topbar .clock-chip { display: none; }
  .notice h3, .notice p { white-space: normal; }
  .ticker__ctrl { border-left: 0; padding-left: 0; }
  .board__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .tile--big { grid-column: span 1; }
}

/* ============ Buscador global (combobox + listbox) ============ */
.gsearch__pop {
  position: absolute; z-index: 25; top: calc(100% + 8px); left: 0;
  width: max(100%, min(560px, calc(100vw - 32px))); max-height: min(520px, calc(100vh - 120px));
  overflow-y: auto; overscroll-behavior: contain; padding: 10px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; gap: 6px;
  transform-origin: top center; animation: popIn .32s cubic-bezier(.3, 1.3, .5, 1) both;
}
.gsearch__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gsearch__sugg { display: flex; flex-direction: column; gap: 8px; padding: 6px 8px 10px; }
.gsearch__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gsearch__chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .18s var(--ease), border-color .2s, color .2s;
}
.gsearch__chip:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--text); }
.gsearch__chip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--primary); }
.gsearch__list { display: flex; flex-direction: column; gap: 6px; }
.gsearch__group { display: flex; flex-direction: column; gap: 2px; }
.gsearch__gtitle { padding: 6px 10px 4px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: var(--text); cursor: pointer; transition: background .15s; }
.sr-item:hover { background: rgba(var(--ink), .05); }
.sr-item[aria-selected="true"] { background: rgba(var(--ink), .07); }
.sr-item mark { background: rgba(67, 191, 253, .22); color: inherit; border-radius: 4px; padding: 0 1px; }
.sr-item__ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.sr-item__ic--round { border-radius: 50%; }
.sr-item__ic--doc { border-radius: 10px; font-size: 10px; letter-spacing: .04em; }
.sr-item__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sr-item__t, .sr-item__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-item__t { font-size: 14px; font-weight: 600; }
.sr-item__sub { font-size: 12px; color: var(--muted); }
.sr-item__act { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); opacity: 0; transition: opacity .15s; }
.sr-item[aria-selected="true"] .sr-item__act { opacity: 1; color: var(--primary-text); }
.gsearch__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 12px; text-align: center; }
.gsearch__empty b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.gsearch__empty span { font-size: 13px; color: var(--muted); }
.gsearch__foot { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 10px 2px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.gsearch__foot kbd { font: 700 12px var(--font); padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--text-2); }
@media (max-width: 720px) { .gsearch__pop { width: 100%; } }
@media (hover: none) {
  .sr-item__act { opacity: 1; }
  .gsearch__foot { display: none; }
}

/* ============ Apps del board: abrir ============ */
.board:not(.editing) .tile { cursor: pointer; }
.tile .open-ic {
  position: absolute; right: 14px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  opacity: 0; transform: translate(-4px, 4px); transition: opacity .25s, transform .3s var(--ease-bounce, cubic-bezier(.3, 1.6, .5, 1));
}
.tile:hover .open-ic, .tile:focus-within .open-ic { opacity: 1; transform: none; }
.board.editing .open-ic { display: none; }
/* Botón real (teclado y lectores) que cubre la tarjeta; el clic del ratón lo recoge la tarjeta
   para no romper el arrastre (Firefox no arrastra desde un <button>). */
.tile-hit { position: absolute; inset: 0; z-index: 2; padding: 0; border: 0; border-radius: 18px; background: transparent; pointer-events: none; }
.tile-hit:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--primary); }
@keyframes launch { 0% { transform: scale(1); } 35% { transform: scale(.94); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }
.tile.launch { animation: launch .55s cubic-bezier(.3, 1.4, .5, 1); }

/* ============ Agenda: unirse a reuniones online ============ */
.meet__row--foot { flex-wrap: wrap; }
.meet__join { min-height: 34px; padding: 0 12px; gap: 6px; font-size: 13px; font-weight: 700; }
.meet__join--live { background: var(--act-g); color: #0E121B; }
.meet__join--live:hover { box-shadow: 0 10px 24px -10px var(--act-g); }

/* ============ Documentos: descarga ============ */
.dl-ic { display: inline-flex; }

/* ============ Detalle de aviso (modal) ============ */
@keyframes amIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.nd-backdrop { position: fixed; inset: 0; z-index: 40; border: 0; background: rgba(5, 8, 14, .6); backdrop-filter: blur(6px); cursor: default; animation: fadeIn .3s ease both; }
.nd-wrap { position: fixed; inset: 0; z-index: 41; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.nd {
  pointer-events: auto; width: min(680px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7);
  display: flex; flex-direction: column;
}
.nd--in { animation: amIn .42s cubic-bezier(.2, .9, .25, 1.05) both; }
.nd__head { position: relative; padding: 24px 24px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.nd__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 48px; font-size: 13px; }
.nd__level { padding: 5px 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nd__head h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.nd__close { position: absolute; top: 18px; right: 18px; width: 40px; min-height: 40px; background: rgba(var(--bg-rgb), .5); color: var(--text); }
.nd__body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.nd__body p { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.nd__body .nd__lead { font-size: 16px; }
.nd__facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.nd__facts > div { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.nd__fact-ic { flex: none; margin-top: 1px; color: var(--muted); }
.nd__facts dt { font-size: 12px; color: var(--muted); }
.nd__facts dd { margin: 0; font-size: 14px; font-weight: 600; }
.nd-file {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  text-align: left; cursor: pointer; transition: transform .18s var(--ease), border-color .2s;
}
.nd-file:hover { transform: translateY(-2px); border-color: rgba(var(--ink), .2); }
.nd-file:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--primary); }
.nd-file svg { transition: transform .25s var(--ease); }
.nd-file:hover .i-pop { transform: scale(1.15); }
.nd-file__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nd-file__txt b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.nd-file__txt small { font-size: 12px; color: var(--muted); }
.nd-file__ic { color: var(--muted); }
.nd__foot {
  position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface);
}
.nd__foot .btn { min-height: 46px; }
.nd__act { min-width: 200px; }
.nd__act.is-done { background: var(--act-g); color: #0E121B; }
.nd__act.is-done::before { display: none; }
.nd__act[aria-disabled="true"] { cursor: default; }
.nd__act[aria-disabled="true"]:hover, .nd__act[aria-disabled="true"]:active { transform: none; box-shadow: none; }
@media (max-width: 520px) {
  .nd__head, .nd__body, .nd__foot { padding-left: 16px; padding-right: 16px; }
  .nd__foot .btn { flex: 1 1 100%; white-space: normal; }
  .nd__act { min-width: 0; }
}

/* ============ Toast ============ */
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.toast { max-width: calc(100vw - 48px); animation: toastIn .35s cubic-bezier(.2, .7, .2, 1) both; }
.toast--info { border-color: rgba(67, 191, 253, .4); }
.toast__ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
@media (max-width: 520px) { .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; } }
