/* Entrega del equipo de diseño, 9 de noviembre de 2026 (mockup plataforma 2.0).
   Copiado literal del artefacto; ni una regla reescrita. */

/* Menú del campus */
.app-bar .wrap { gap: 12px; }
.app-bar .brand { margin-right: 0; }
.app-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 12px; }
.app-nav a { padding: 8px 16px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--text); transition: background-color .2s ease, color .2s ease; }
.app-nav a:hover { color: var(--navy); background: var(--surface); }
.app-nav a[aria-current="page"] { color: var(--navy); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.app-actions { display: flex; align-items: center; gap: 4px; }
.app-actions .icon-button { position: relative; transition: background-color .2s ease; }
.app-actions .icon-button[aria-expanded="true"] { background: var(--surface); }
.app-actions .avatar { margin-left: 6px; }
#themeBtn .i-sun { display: none; }
:root[data-theme="dark"] #themeBtn .i-sun { display: block; }
:root[data-theme="dark"] #themeBtn .i-moon { display: none; }
.badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #e5484d; color: #fff; font: 700 0.6875rem/18px var(--body); text-align: center; box-shadow: 0 0 0 2px var(--bg);
}
.pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 360px; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--card-border); box-shadow: 0 20px 50px rgb(0 20 60 / 18%);
}
.pop__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.pop__head h2 { font-size: 1.0625rem; }
.pop__head button { border: 0; background: none; padding: 0; color: var(--blue); font-size: 0.8125rem; font-weight: 500; }
.pop__head button:hover { text-decoration: underline; text-underline-offset: 3px; }
.pop__list { list-style: none; padding: 0; max-height: 380px; overflow-y: auto; }
.pop__item { display: flex; gap: 12px; width: 100%; padding: 14px 20px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: inherit; }
.pop__list li:last-child .pop__item { border-bottom: 0; }
.pop__item:hover { background: var(--surface-2); }
.pop__item.is-unread { background: color-mix(in srgb, var(--btn-card) 6%, transparent); }
.pop__dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: transparent; }
.pop__item.is-unread .pop__dot { background: var(--btn-card); }
.pop__avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--blue); font: 700 0.8125rem var(--heading); }
.pop__text { flex: 1; min-width: 0; }
.pop__text strong { display: block; font: 600 0.9375rem/1.35 var(--heading); color: var(--navy); }
.pop__text p { margin-top: 2px; font-size: 0.875rem; line-height: 1.45; color: var(--text); }
.pop__text time { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); }
.pop__empty { padding: 28px 20px; text-align: center; font-size: 0.9375rem; color: var(--text); }
.menu__links { display: none; }


/* Accesibilidad */
.a11y { position: fixed; right: 24px; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 40; display: grid; justify-items: end; gap: 10px; }
.a11y__toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px 0 14px; border: 0; border-radius: 999px;
  background: #003e70; color: #fff; font-size: 0.8125rem; font-weight: 500; box-shadow: 0 10px 30px rgb(0 30 70 / 25%);
}
.a11y__toggle .icon { width: 1.5rem; height: 1.5rem; }
.a11y__panel { width: 280px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 20px 50px rgb(0 20 60 / 20%); border: 1px solid var(--card-border); }
.a11y__panel h2 { font-size: 1.0625rem; }
.a11y__row { margin-top: 16px; }
.a11y__row > span { display: block; font-size: 0.875rem; color: var(--text); margin-bottom: 8px; }
.seg { display: flex; gap: 6px; }
.seg button {
  flex: 1; height: 40px; border-radius: 999px; border: 1px solid var(--field-border); background: var(--surface); color: var(--navy);
  font-weight: 600;
}
.seg button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }

