#afm .afm-top,#afm .afm-nav{display:none}
#afm .afm-burger{display:grid;place-content:center;gap:5px;width:44px;height:44px;flex:none;border-radius:12px;background:rgba(255,255,255,.12)}
#afm .afm-burger span{display:block;width:22px;height:2.5px;border-radius:2px;background:currentColor}
#afm .afm-bar{gap:8px;padding:6px 12px}
#afm .afm-bar>.afm-logo{margin:0 auto;flex:0 1 auto;min-width:0}
#afm .afm-bar>.afm-logo img{height:var(--afm-logo-m);max-width:min(calc(100vw - 130px - var(--afm-x,0px)),var(--afm-logo-w))}
#afm.is-scrolled .afm-bar>.afm-logo img{height:var(--afm-logo-ms)}
#afm .afm-tools ul{padding:8px 12px}
#afm .afm-crests ul{gap:12px;padding:8px 12px}
#afm .afm-crests a{width:34px;height:34px}
#afm.is-scrolled .afm-tools{max-height:0}
#afm .afm-search{padding:0 12px 10px}
/* Hamburguesa a la derecha: buscador y modo noche pasan a la izquierda y el panel se abre por la derecha */
#afm.afm-bs-r .afm-sbtn{order:1;margin-left:0}
#afm.afm-bs-r .afm-dm{order:2}
#afm.afm-bs-r .afm-bar>.afm-logo{order:3}
#afm.afm-bs-r .afm-burger{order:4}
#afm.afm-bs-r .afm-nologo .afm-burger{margin-left:auto}
#afm.afm-bs-r .afm-drawer{left:auto;right:0;transform:translateX(102%)}
#afm.afm-bs-r.drawer-open .afm-drawer{transform:none}
#afm.afm-acc-m .afm-bar>.afm-logo img{max-width:min(calc(100vw - 182px - var(--afm-x,0px)),var(--afm-logo-w))}
