/* Demo textil · el armazón (tema «Dashboard V2»): menú lateral blanco flotante, barra superior con botones redondos,
   y en el teléfono un dock negro flotante abajo. Las piezas (tarjetas, tablas, botones) viven en shared/brand.css. */

.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 16px; min-height: 100dvh; padding: 16px; }

/* ── menú lateral: tarjeta blanca flotante ── */
.lado { position: sticky; top: 16px; height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border-radius: var(--r-shell); box-shadow: var(--shadow); display: flex; flex-direction: column; padding: 18px 12px; gap: 2px; scrollbar-width: none; }
.lado::-webkit-scrollbar { display: none; }
.marca { display: flex; align-items: center; gap: 10px; padding: 2px 8px 16px; }
.marca .logo { width: 38px; height: 38px; border-radius: 12px; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; flex: 0 0 auto; }
.marca .logo .i { width: 19px; height: 19px; }
.marca b { display: block; font-size: 14.5px; letter-spacing: -.01em; line-height: 1.2; }
.marca span { display: block; font-size: 11.5px; color: var(--muted); }
.grupo-t { font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.nav-it { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 550; border: 0; background: transparent; width: 100%; text-align: left; position: relative; transition: background .2s var(--ease), color .2s var(--ease); }
.nav-it:hover { background: var(--surface-2); color: var(--ink); }
.nav-it.on { background: var(--acc); color: var(--acc-ink); font-weight: 650; }
.nav-it .badge { margin-left: auto; min-width: 20px; height: 20px; border-radius: 999px; background: var(--coral); color: #FFFFFF; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.lado-pie { margin-top: auto; padding: 14px 4px 2px; display: flex; flex-direction: column; gap: 10px; }
.demo-nota { border-radius: 18px; padding: 12px 14px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; background: var(--peach-soft); }
.demo-nota b { color: var(--ink); }
.demo-nota a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ── barra superior ── */
.principal { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 6px 4px 14px; background: rgba(242, 243, 245, .88); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); min-height: 60px; }
.topbar .tit { min-width: 0; flex: 1; }
.topbar h1 { font-size: 22px; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vercomo { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink); max-width: 260px; }
.vercomo .av { width: 30px; height: 30px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; font-size: 11.5px; font-weight: 750; flex: 0 0 auto; }
.vercomo .q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vercomo .q small { color: var(--muted); font-weight: 600; margin-right: 4px; }
.contenido { padding: 4px 4px 56px; max-width: 1480px; width: 100%; margin: 0 auto; min-width: 0; }
.cab-vista { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.cab-vista h2 { font-size: 24px; letter-spacing: -.03em; }
.cab-vista p { color: var(--ink-2); font-size: 14px; margin-top: 4px; max-width: 70ch; }

/* lista de avisos (hoja de la campana) */
.av-it { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; }
.av-it:hover { background: var(--surface-2); }
.av-it b { display: block; font-size: 14px; } .av-it span.d { display: block; font-size: 12.5px; color: var(--muted); }

/* ── «Ver como»: lista de roles ── */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rol { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); min-width: 0; transition: background .2s var(--ease), border-color .2s; }
.rol:hover { border-color: var(--line-2); background: var(--surface-2); }
.rol.on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.rol b { display: block; font-size: 14px; } .rol .grow > span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
@media (max-width: 560px) { .roles { grid-template-columns: minmax(0, 1fr); } }

/* ── dock inferior (teléfono) ── */
.abajo { display: none; }

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .lado { display: none; }
  .topbar { padding: 10px 16px; min-height: 60px; gap: 8px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .topbar h1 { font-size: 18px; }
  .topbar .icbtn { width: 36px; height: 36px; }
  .vercomo { padding: 0 4px; max-width: none; height: 38px; }
  .vercomo .q, .vercomo > .i { display: none; }
  .contenido { padding: 6px 16px calc(110px + env(safe-area-inset-bottom)); }
  .cab-vista h2 { font-size: 21px; }
  .cab-vista h2.repite { display: none; }
  .abajo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; background: #111113; border-radius: 999px; padding: 6px; box-shadow: var(--shadow-up); border: 1px solid rgba(255, 255, 255, .08); }
  .abajo button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; border-radius: 999px; color: rgba(255, 255, 255, .62); font-size: 10.5px; font-weight: 600; min-width: 0; transition: background .2s var(--ease), color .2s; }
  .abajo button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .abajo button .i { width: 21px; height: 21px; }
  .abajo button.on { color: #111113; background: #FFFFFF; }
}
@media (max-width: 380px) { .topbar #btnTemaTop { display: none; } }

/* menú completo en el teléfono (hoja) */
.menu-m { display: flex; flex-direction: column; gap: 2px; }
.menu-m .grupo-t { padding-left: 6px; }
.menu-m .nav-it { height: 46px; font-size: 15px; }
