/* T59b — menu only. All rules scoped; editorial/photo/description styles unchanged. */
#header .t59b-menu{position:relative;background:#0759db;color:#fff;padding:0 16px;clear:both;z-index:70}
#header .t59b-menu ul{list-style:none;margin:0;padding:0}
#header .t59b-menu label{margin:0;cursor:pointer;color:#fff;font-weight:600}
#header .t59b-menu a{color:#fff;text-decoration:none;font-weight:600}
#header .t59b-menu-groups{display:flex;flex-wrap:wrap;justify-content:center;position:relative;max-width:1440px;margin:auto}
#header .t59b-menu-groups>li>a,#header .t59b-menu-group>label{display:flex;align-items:center;min-height:46px;padding:10px 12px;line-height:1.3;font-size:14px;white-space:nowrap;box-sizing:border-box}
#header .t59b-menu-group>label:after{content:'⌄';margin-left:6px}
#header .t59b-menu-groups>li:hover,#header .t59b-menu-groups>li:focus-within{background:#0648b4}
#header .t59b-menu-panel{display:none;position:absolute;left:0;right:0;top:100%;z-index:80;background:#fff;color:#12234c;padding:16px;gap:8px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));max-height:65vh;overflow:auto;overscroll-behavior:contain;box-shadow:0 10px 24px #13245226;border:1px solid #d3e0f4;border-radius:0 0 14px 14px}
#header .t59b-menu-panel>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#12234c;background:#fff;font-size:13px;text-align:center;min-height:44px;padding:8px;border-radius:8px;line-height:1.35;overflow-wrap:anywhere}
#header .t59b-menu-panel>a:hover,#header .t59b-menu-panel>a:focus{color:#0759db;background:#edf3ff}
#header .t59b-menu-panel img{width:72px;height:72px;object-fit:contain;display:block}
#header .t59b-menu-toggle,#header .t59b-group-toggle{position:absolute;opacity:0;width:1px;height:1px}
#header .t59b-menu>.t59b-menu-label{display:none}
#header .t59b-menu a:focus-visible,#header .t59b-group-toggle:focus-visible+label,#header .t59b-menu-toggle:focus-visible+label{outline:3px solid #ffd000;outline-offset:-3px}
#header .t59b-group-toggle:checked~.t59b-menu-panel{display:grid}

@media(max-width:1024px){#header .t59b-menu-groups>li>a,#header .t59b-menu-group>label{font-size:13px;padding:10px 8px}}
@media(max-width:767px){
#header .t59b-menu{padding:0 12px}
#header .t59b-menu>.t59b-menu-label{display:flex;align-items:center;justify-content:center;min-height:44px}
#header .t59b-menu>.t59b-menu-label:after{content:' ☰';margin-left:8px}
#header .t59b-menu-toggle:not(:checked)~.t59b-menu-groups{display:none}
#header .t59b-menu-groups{display:block;max-height:70vh;overflow:auto}
#header .t59b-menu-groups>li>a,#header .t59b-menu-group>label{min-height:44px;padding:12px;font-size:14px}
#header .t59b-menu-panel{position:static;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;box-shadow:none;border-radius:8px;margin-bottom:8px}
#header .t59b-menu-group:focus-within>.t59b-menu-panel{display:none}
#header .t59b-group-toggle:checked~.t59b-menu-panel{display:grid}
}

/* T59F: solo el panel Más categorías. Lista cerrada, sin miniaturas vacías. */
#header .t59b-menu-all[data-t59f-menu]{grid-template-columns:repeat(2,minmax(0,1fr));max-height:min(65vh,calc(100dvh - 260px));overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;gap:12px;padding:16px}
#header .t59f-menu-section{min-width:0;display:grid;grid-template-columns:1fr;align-content:start;gap:2px}
#header .t59f-menu-section h2{margin:0 0 4px;padding:4px 12px;font-size:16px;line-height:1.4;font-weight:700;color:#12234c}
#header .t59f-menu-section a,#header .t59b-menu-all>a.t59f-menu-directory{display:flex;align-items:center;justify-content:flex-start;min-height:44px;margin:0;padding:10px 12px;text-align:left;border-radius:8px;color:#12234c;background:#fff;font-size:14px;line-height:1.4;box-sizing:border-box;overflow-wrap:anywhere}
#header .t59f-menu-section a:hover,#header .t59f-menu-section a:focus,#header .t59b-menu-all>a.t59f-menu-directory:hover,#header .t59b-menu-all>a.t59f-menu-directory:focus{color:#0759db;background:#edf3ff}
#header .t59f-menu-section a:focus-visible,#header .t59b-menu-all>a.t59f-menu-directory:focus-visible{outline:3px solid #0759db;outline-offset:-3px}
#header .t59b-menu-all>a.t59f-menu-directory{grid-column:1/-1;border-top:1px solid #d3e0f4;border-radius:0;font-weight:700;justify-content:space-between}
@media(max-width:767px){#header .t59b-menu-all[data-t59f-menu]{grid-template-columns:1fr;max-height:none;overflow:visible;padding:10px;gap:12px}}

@media(max-width:767px){#header .t59b-menu-groups:has(#t59b-group-7:checked){overscroll-behavior:contain}}

/* U1: click/keyboard controlled groups, compact and bounded in the viewport. */
#header .t59b-menu-panel,#header .t59b-menu-all[data-t59f-menu] { max-height:var(--u1-menu-space,min(65vh,calc(100dvh - 260px))); overflow-y:auto; overscroll-behavior:contain; box-sizing:border-box; }
@media(max-width:767px) {
  #header .t59b-menu-groups { max-height:var(--u1-menu-groups-space,65dvh); overflow-y:auto; overscroll-behavior:contain; }
  #header .t59b-menu-groups>li>a,#header .t59b-menu-group>label { min-height:44px; padding:7px 10px; font-size:13px; }
  #header .t59b-menu-all[data-t59f-menu] { padding:6px; gap:6px; }
  #header .t59f-menu-section { gap:0; }
  #header .t59f-menu-section a,#header .t59b-menu-all>a.t59f-menu-directory { min-height:44px; padding:6px 8px; font-size:13px; }
}
