/* AF Menú — extras: botones flotantes, escudos fuera del menú y botón de modo oscuro en el pie. */

/* Botones flotantes (modo oscuro flotante + subir arriba) */
.afm-fabs{position:fixed;right:16px;bottom:calc(var(--afm-fab-b,20px) + var(--afm-ad-h,0px));z-index:9985;display:flex;flex-direction:column-reverse;align-items:center;gap:10px;transition:bottom .2s ease}
.afm-fabs.afm-left{right:auto;left:16px}
.afm-fab{position:relative;display:flex;align-items:center;justify-content:center;width:52px;height:52px;margin:0;padding:0;border:0;border-radius:50%;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.45);font-size:22px;line-height:1;-webkit-appearance:none;appearance:none;transition:transform .15s ease}
.afm-fab:hover{transform:scale(1.06)}
.afm-fab:focus-visible{outline:3px solid #ffcc4d;outline-offset:2px}
.afm-fab-top{display:none;background:var(--afm-bg,#00529b);color:var(--afm-tx,#fff)}
.afm-fab-top.is-on{display:flex;animation:afmFabIn .2s ease}
.afm-fab-top span{display:block;width:13px;height:13px;margin-top:5px;border:solid currentColor;border-width:3px 0 0 3px;transform:rotate(45deg)}
@keyframes afmFabIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:480px){
	.afm-fabs{right:14px}
	.afm-fabs.afm-left{right:auto;left:14px}
	.afm-fab{width:46px;height:46px;font-size:19px}
}

/* Escudos fuera del menú (antes del pie / shortcode) */
.afm-cfoot{width:100%;box-sizing:border-box;background:var(--afm-cr,#fff)}
.afm-cfoot ul{position:relative;display:flex;align-items:center;gap:14px;max-width:1400px;margin:0 auto;padding:10px 20px;list-style:none;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;cursor:grab;overscroll-behavior-x:contain}
.afm-cfoot ul::-webkit-scrollbar{display:none}
.afm-cfoot ul.is-dragging{cursor:grabbing;user-select:none}
.afm-cfoot li{flex:none;margin:0;padding:0}
.afm-cfoot li:first-child{margin-left:auto}
.afm-cfoot li:last-child{margin-right:auto}
.afm-cfoot a{display:block;width:40px;height:40px;border-radius:50%;transition:transform .18s}
.afm-cfoot a:hover{transform:scale(1.22) translateY(-2px)}
.afm-cfoot a.active{box-shadow:0 0 0 3px var(--afm-bg,#00529b)}
.afm-cfoot img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}

/* Botón de modo oscuro en el pie */
.afm-dm-foot{display:flex;justify-content:center;padding:14px 12px}
.afm-dm-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;border:0;border-radius:99px;cursor:pointer;background:var(--afm-bg,#00529b);color:#fff;font:inherit;font-weight:700;line-height:1.2}
.afm-dm-btn .afm-dm-s{display:none}
html.dmaf-dark .afm-dm-btn .afm-dm-m{display:none}
html.dmaf-dark .afm-dm-btn .afm-dm-s{display:inline}
