/* Barra inferior: accesos rápidos hasta 1120 px (desde 1121, menú de escritorio). Solo se anima el desplegable de equipos.
 * Recuperada del diseño anterior a petición del usuario (01-12-2026). Depende de base-nextgen.css. */
.bltn-tabbar { display:none; }

@media screen and (max-width:1120.98px) {
  :root { --bltn-tabbar:calc(57px + env(safe-area-inset-bottom, 0px)); }

  /* Hueco final para que la barra no tape el pie ni ningún botón, también al enfocar con teclado. */
  html { scroll-padding-bottom:var(--bltn-tabbar); }
  body { padding-bottom:var(--bltn-tabbar); }

  /* Por debajo de la cabecera (200): el menú desplegado queda siempre encima. */
  .bltn-tabbar { background:rgba(10,8,16,.94); border-top:1px solid rgba(227,185,78,.25); bottom:0; display:block; left:0; padding:0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); position:fixed; right:0; z-index:190; }
  .bltn-tabbar ul { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); list-style:none; margin:0 auto; max-width:44rem; padding:0; }
  .bltn-tabbar li { margin:0; }
  .bltn-tabbar a, .bltn-tabbar summary { align-items:center; color:var(--pm-text-3); display:flex; flex-direction:column; font:700 .6875rem/1.2 var(--bltn-body); gap:3px; justify-content:center; min-height:56px; padding:5px 2px; position:relative; text-decoration:none; }
  .bltn-tabbar svg { display:block; flex:none; height:24px; width:24px; }
  /* La página activa se distingue por el filete y el peso, no solo por el color. */
  .bltn-tabbar a[aria-current="page"], .bltn-tabbar summary.is-current { color:var(--pm-gold); font-weight:800; }
  .bltn-tabbar a[aria-current="page"]::before, .bltn-tabbar summary.is-current::before { background:var(--pm-gold); content:""; height:3px; left:50%; margin-left:-18px; position:absolute; top:-1px; width:36px; }
  .bltn-tabbar a:hover, .bltn-tabbar summary:hover, .bltn-tabbar details[open] summary { color:#fff; }
  .bltn-tabbar a[aria-current="page"]:hover { color:var(--pm-gold-light); }
  .bltn-tabbar a:focus-visible, .bltn-tabbar summary:focus-visible { outline:3px solid var(--pm-gold)!important; outline-offset:-4px; }

  /* «Equipos»: desplegable con la lista de equipos, sobre la barra. Sin página de equipos. */
  .bltn-tabbar summary { cursor:pointer; list-style:none; -webkit-tap-highlight-color:transparent; }
  .bltn-tabbar summary::-webkit-details-marker { display:none; }
  /* Fondo velado: tocarlo cierra (es parte del summary); los demás accesos siguen encima. */
  .bltn-tabbar details[open] summary::after { background:rgba(6,4,10,.6); content:""; inset:0; position:fixed; z-index:-1; }
  .bltn-tabbar__sheet { background:#120d1b; border:1px solid var(--pm-line-strong); border-bottom:0; border-radius:18px 18px 0 0; bottom:var(--bltn-tabbar); box-shadow:0 -18px 40px rgba(0,0,0,.45); left:0; margin:0 auto; max-height:calc(100svh - var(--bltn-tabbar) - 96px); max-width:44rem; overflow-y:auto; overscroll-behavior:contain; padding:18px 18px 10px; position:fixed; right:0; scrollbar-color:var(--pm-purple-2) transparent; z-index:1; animation:bltn-sheet .32s cubic-bezier(.2,.7,.2,1) both; }
  .bltn-tabbar__sheet::before { background:var(--pm-purple-2); border-radius:2px; content:""; display:block; height:4px; margin:-6px auto 14px; width:40px; }
  .bltn-tabbar__sheet-t { color:#fff; font:700 1.5rem/1 var(--bltn-display); margin:0 0 6px; text-transform:uppercase; }
  .bltn-tabbar__sheet ul { display:block; max-width:none; }
  .bltn-tabbar__sheet li { border-top:1px solid var(--pm-line); }
  .bltn-tabbar__sheet li:first-child { border-top:0; }
  .bltn-tabbar__sheet a { align-items:flex-start; color:#fff; flex-direction:column; font:700 1rem/1.2 var(--bltn-body); gap:2px; min-height:56px; padding:10px 4px; }
  .bltn-tabbar__sheet a span { color:var(--pm-text-3); font:400 .8125rem/1.3 var(--bltn-body); }
  .bltn-tabbar__sheet a:hover strong { color:var(--pm-gold-light); }
  .bltn-tabbar__sheet a[aria-current="page"] { color:var(--pm-gold); }
  .bltn-tabbar__sheet a[aria-current="page"]::before { height:auto; left:-18px; margin:0; top:12px; bottom:12px; width:3px; }
  @keyframes bltn-sheet { from { opacity:0; transform:translateY(24px); } }
  @media (prefers-reduced-motion:reduce) { .bltn-tabbar__sheet { animation:none; } }

  /* Con el visor de fotos abierto, la barra se retira. */
  html.bltfc-viewing .bltn-tabbar { visibility:hidden; }
}
