/* Cabecera común (diseño de la home) sobre el degradado de cada federación (.logobar) */
.logobar.fh { min-height: 0; height: auto; padding: 10px 0; overflow: visible; }
.logobar.fh::before { opacity: .1; }
.fh-in { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 48px; }
.logobar.fh .hamburger { position: relative; top: auto; left: auto; flex: 0 0 44px; width: 44px; height: 44px; }
.fh-circ { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--header-action-bg, rgba(0,0,0,.2)); border: 1px solid var(--header-action-border, rgba(255,255,255,.2)); color: #fff !important; cursor: pointer; text-decoration: none; transition: background-color .2s ease; }
.fh-circ:hover { background: rgba(0,0,0,.32); }
.logobar.fh .fh-logo { flex: 1 1 auto; width: auto; min-width: 0; justify-content: center; }
.logobar.fh .fh-logo { gap: 6px; align-items: center; }
.logobar.fh .fh-logo a { display: inline-flex; align-items: center; }
.logobar.fh .fh-fed:hover em { text-decoration: underline; }
.logobar.fh .logof-mark { height: 36px; max-width: 150px; }
.fh-acc { display: flex; align-items: center; gap: 8px; }
.fh-campana { position: relative; }
.fh-num { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #FFC72C; color: #0a0a0c; font: 800 11px/18px Inter, system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.fh-login span { display: none; }
.fh-avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #FFC72C; color: #0a0a0c !important; font: 400 20px/44px 'Bebas Neue', Impact, sans-serif;
  letter-spacing: .5px; text-align: center; text-decoration: none !important; text-transform: uppercase; }
.fh-avatar:hover { box-shadow: 0 0 0 3px rgba(255,199,44,.35); }
/* El buscador: en móvil, segunda fila a todo el ancho; en escritorio, entre el logo y los botones */
.logobar.fh #lupasearch.fh-buscar { order: 9; flex: 1 0 100%; width: auto; height: 46px; border-radius: 23px; justify-content: flex-start; gap: 10px; padding: 0 16px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.85); font: 500 14px Inter, system-ui, sans-serif;
  text-transform: none; cursor: text; transform: none; }
.logobar.fh #lupasearch.fh-buscar:hover { background: rgba(255,255,255,.22); }
.fh-buscar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) {
  .logobar.fh { padding: 14px 0; }
  .fh-in { flex-wrap: nowrap; gap: 14px; }
  .logobar.fh .fh-logo { flex: 0 0 auto; justify-content: flex-start; }
  .logobar.fh .logof-mark { height: 42px; max-width: 190px; }
  .logobar.fh #lupasearch.fh-buscar { order: 0; flex: 1 1 320px; max-width: 560px; margin: 0 auto; }
  .fh-acc { margin-left: auto; }
  .fh-login { width: auto; flex-basis: auto; padding: 0 18px 0 14px; gap: 8px; border-radius: 23px; }
  .fh-login span { display: inline; font-size: 13px; font-weight: 700; text-transform: none; }
}
/* Móvil: el nombre de la federación va bajo el logo (un poco superpuesto) para que menú, campana
   y cuenta quepan siempre en la primera fila */
@media (max-width: 899px) {
  .logobar.fh .fh-logo { flex: 1 1 0; }
  .logobar.fh .fh-logo { flex-direction: column; align-items: center; gap: 0; max-width: 100%; }
  .logobar.fh .logof-mark { height: 32px; max-width: 100%; }
  .logobar.fh .logof-brand { margin-top: 1px; padding: 0; float: none; line-height: 1; position: relative; z-index: 1; }
  .logobar.fh .logof-brand em { font-size: 1.05rem; }
  .fh-in > .hamburger, .fh-acc { flex-shrink: 0; }
}
/* Portadas de federación: la cabecera va encima del bloque de portada; en móvil tiene la fila del buscador */
@media (max-width: 899px) { #home .home-hero { padding-top: 132px; } }
/* Con la fila de secciones la cabecera es más alta: las portadas usan su alto real (--fh-alto, header.php) */
#home .pt-cab, #home .home-hero { padding-top: calc(var(--fh-alto, 80px) + 16px) !important; }

/* Menú lateral: volver a la home de todas las federaciones y cambiar de federación */
.menu-nac { padding: 4px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.menu-nac-home { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #0a0a0c; color: #fff !important; text-decoration: none !important; border: 1px solid rgba(255,255,255,.12); }
.menu-nac-home svg { flex: 0 0 auto; color: #FFC72C; }
.menu-nac-home b { display: block; font-size: 14px; font-weight: 800; letter-spacing: .3px; }
.menu-nac-home small { display: block; font-size: 12px; color: rgba(255,255,255,.6); text-transform: none; }
.menu-nac-t { margin: 14px 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.menu-nac-feds { display: flex; flex-wrap: wrap; gap: 6px; }
.menu-nac-feds a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid rgba(255,255,255,.18);
  color: #fff !important; text-decoration: none !important; font-size: 13px; font-weight: 700; text-transform: none; }
.menu-nac-feds a:hover { background: rgba(255,255,255,.1); }
.menu-nac-feds a.is-actual { background: #fff; color: #0a0a0c !important; border-color: #fff; }
.menu-nac-feds i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }

/* Menú lateral: "Cambiar de federación" al final, desplegable (dentro de una federación) */
.menu-fed-lista { display: none; padding: 6px 16px 14px; background: rgba(0,0,0,.16); border-top: 1px solid rgba(255,255,255,.1); }
.menu-fed-cambio.is-open .menu-fed-lista { display: grid; gap: 4px; }
.menu-fed-lista a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 12px; color: #fff !important; text-decoration: none !important; font-size: 14px; font-weight: 700; }
.menu-fed-lista a:hover { background: rgba(255,255,255,.08); }
.menu-fed-lista a.is-actual { background: rgba(255,255,255,.12); }
.menu-fed-lista i { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.menu-fed-lista small { margin-left: auto; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.55); }

/* Fila de secciones con el chip de la federación y barra inferior en el móvil (rediseño 11-oct-2026) */
.fh-secc { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.fh-fedsel { position: relative; flex: 0 0 auto; }
.fh-fedsel > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border-radius: 17px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); color: #fff; font: 800 12.5px/1 Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.fh-fedsel > summary::-webkit-details-marker { display: none; }
.fh-fedsel > summary i, .fh-fedsel-lista i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.fh-fedsel[open] > summary svg { transform: rotate(180deg); }
.fh-fedsel-lista { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: 240px; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 16px;
  background: #0a0a0c; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 34px rgba(0,0,0,.35); display: grid; gap: 2px; }
/* 18-oct-2026: con el selector abierto, la barra entera por encima de las pestañas fijas (#rv .rv-tabs, z-index 20) y de la barra
   compacta (21): el desplegable vive dentro de la barra y su z-index solo cuenta dentro de ella */
body:has(.fh-fedsel[open]) .logobar { z-index: 40 !important; }
.fh-fedsel-lista a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: #fff !important; text-decoration: none !important;
  font: 700 13.5px/1.2 Inter, system-ui, sans-serif; text-transform: none; }
.fh-fedsel-lista a:hover { background: rgba(255,255,255,.08); }
.fh-fedsel-lista a.is-actual { background: #fff; color: #0a0a0c !important; }
.fh-fedsel-lista .fh-fedsel-todas { color: #FFC72C !important; }
.fh-tabs { flex: 1 1 auto; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.fh-tabs::-webkit-scrollbar { display: none; }
.fh-tabs a { flex: 0 0 auto; padding: 9px 11px; border-bottom: 3px solid transparent; color: rgba(255,255,255,.78) !important; text-decoration: none !important;
  font: 700 13px/1 Inter, system-ui, sans-serif; text-transform: none; white-space: nowrap; }
.fh-tabs a:hover { color: #fff !important; }
.fh-tabs a.is-on { color: #fff !important; border-bottom-color: #FFC72C; }
.fh-inf { display: none; }
@media (max-width: 899px) {
  .fh-inf { position: fixed; left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; height: 60px; display: flex; gap: 2px; padding: 6px;
    border-radius: 22px; background: rgba(10,10,12,.94); box-shadow: 0 10px 30px rgba(0,0,0,.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .fh-inf a { position: relative; flex: 1 1 0; min-width: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 4px; border-radius: 17px;
    color: rgba(255,255,255,.7) !important; text-decoration: none !important; font: 800 12px/1 Inter, system-ui, sans-serif; }
  .fh-inf svg { flex: 0 0 auto; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .fh-inf a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fh-inf [aria-current="page"] { flex: 0 0 auto; padding: 0 16px; background: #FFC72C; color: #0a0a0c !important; }
  .fh-inf [aria-current="page"] > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  body:has(.fh-inf) { padding-bottom: 88px; }
  #scroll-to-top { bottom: 92px !important; }
}
@media print { .fh-inf, .fh-secc { display: none !important; } }
/* Menú lateral con el diseño nuevo (tablero CabeceraFed del lienzo, 11-oct-2026): cabecera con el degradado de la
   federación y el logo, cuerpo oscuro, secciones en una línea, federaciones en rejilla y la cuenta al final */
.menu { background: #0a0a0c; }
.menu::before { display: none; }
.menu-header { padding: 18px 70px 16px 20px; background: var(--fed-header-gradient, #0a0a0c); border-bottom: 0; }
.menu-header-logo img { display: block; height: 30px; width: auto; }
.menu-header-fed { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: rgba(255,255,255,.75); }
.menu-close { top: 16px; right: 16px; }
.menu-sec-t, .menu-secondary::before { display: block; margin: 18px 20px 4px; font: 800 10.5px/1 Inter, system-ui, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); }
.menu-secondary::before { content: 'Tu cuenta'; }
.menu-main { padding: 0 0 6px; }
.menu-item > a { padding: 12px 20px; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.menu-item-label { font: 700 15px/1.2 Inter, system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: lowercase !important; }
.menu-item-label::first-letter { text-transform: uppercase; }
.menu-item-desc { margin-top: 2px; font-size: 11.5px !important; color: rgba(255,255,255,.5) !important; text-transform: none !important; letter-spacing: 0 !important; }
.menu-chevron { width: 16px; height: 16px; opacity: .45; }
/* Cambiar de federación: rótulo y rejilla siempre a la vista */
.menu-fed-cambio > a { pointer-events: none; padding: 18px 20px 6px !important; border-bottom: 0 !important; }
.menu-fed-cambio > a .menu-item-label { font: 800 10.5px/1 Inter, system-ui, sans-serif !important; letter-spacing: 2px !important; text-transform: uppercase !important; color: rgba(255,255,255,.5) !important; }
.menu-fed-cambio > a .menu-item-desc, .menu-fed-cambio > a .menu-chevron { display: none; }
.menu-fed-cambio .menu-fed-lista { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 20px 10px; background: none; border-top: 0; }
.menu-fed-lista a { min-height: 40px; padding: 0 10px; gap: 8px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 12.5px; }
.menu-fed-lista a.is-actual { background: #fff; color: #0a0a0c !important; }
.menu-fed-lista a.is-actual i { box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.menu-fed-lista small { display: none; }
.menu-nac { border-bottom: 0; padding-top: 14px; }
body:has(.menu.active) #searchHint { display: none !important; }   /* la ayuda del buscador no tapa el menú */

/* 13-oct-2026: cabeceras de federación con resplandor (fed_aurora() en header.php redefine --fed-header-gradient):
   sin la trama de rayas diagonales, que ensuciaba el difuminado */
html body .logobar::before, html body .home-hero::before, html body .menu::before, html body .pt-cab::before,
html body .fx-hero::after, html body #rv .rv-cab::before, html body .vacio-dia::before { display: none; }

/* 14-oct-2026: listado de clubes con foto (vista aérea de un pueblo con su campo) bajo el resplandor de la federación */
html body #rv.rv-clubes .rv-cab { background: radial-gradient(85% 120% at 0% 0%, color-mix(in srgb, var(--fed-aur1, #810202) 72%, transparent), transparent 70%), radial-gradient(70% 110% at 100% 0%, color-mix(in srgb, var(--fed-aur2, #d4a326) 46%, transparent), transparent 66%), linear-gradient(180deg, rgba(10,10,12,.5) 0%, rgba(10,10,12,.4) 50%, rgba(10,10,12,.82) 100%), url('/images/cronicas/vista-aerea-pueblo.webp') center / cover no-repeat, #0a0a0c; }

/* v 18-oct-2026 b: versión nueva para que los navegadores no usen la copia rota guardada durante el despliegue */
