/* SPDX-License-Identifier: GPL-3.0-or-later · Trenalia — menú principal (☰) */
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mn { position: fixed; inset: 0; z-index: 3000; }
.mn[hidden] { display: none; }
.mn-back { position: absolute; inset: 0; background: rgba(8, 12, 20, .45); }
.mn-box {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel, var(--bg, #fff)); color: var(--text, inherit); border-left: 1px solid var(--line, #d6dde8);
  padding: calc(10px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom)); box-shadow: -10px 0 30px rgba(0,0,0,.18);
  animation: mn-in .18s ease-out;
}
@keyframes mn-in { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mn-box { animation: none; } }
.mn-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 8px; font-size: 17px; }
.mn-x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line, #d6dde8); background: transparent; color: inherit; font-size: 22px; cursor: pointer; }
.mn-sec { margin: 14px 6px 4px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #556378); font-weight: 700; }
.mn ul { list-style: none; margin: 0; padding: 0; }
.mn li a, .mn li button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 8px 10px; border-radius: 10px;
  color: inherit; text-decoration: none; background: none; border: 0; font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.mn li a:hover, .mn li button:hover, .mn li a:focus-visible, .mn li button:focus-visible { background: var(--panel-2, rgba(127,127,127,.12)); outline: none; }
.mn li svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.mn li small { color: var(--muted, #556378); margin-left: 4px; }
.mn-n { margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--red, #d93a32); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
body.mn-open { overflow: hidden; }
.menu-btn { color: var(--text, inherit); cursor: pointer; }
/* Móvil: lo que no cabe en la barra pasa al menú (☰) */
@media (max-width: 760px) {
  /* «Horarios» se queda a la vista: es lo más buscado; el resto, al menú */
  .topbar #andBtn, .topbar #themeBtn, .topbar #langBtn { display: none; }
}
@media (max-width: 480px) {
  .an-top #themeBtn, .an-top #langBtn { display: none; }
}
