.afpwa-banner{position:fixed;z-index:99999;left:0;right:0;display:flex;align-items:center;gap:12px;box-sizing:border-box;padding:12px 14px;background:var(--afpwa-bg,#111827);color:var(--afpwa-fg,#fff);font:14px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;box-shadow:0 -8px 28px rgba(0,0,0,.3);transform:translateY(130%);opacity:0;transition:transform .35s ease,opacity .35s ease}
.afpwa-bar{bottom:var(--afpwa-offset,0px);padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
.afpwa-card{bottom:calc(var(--afpwa-offset,0px) + 12px + env(safe-area-inset-bottom,0px));left:12px;right:12px;max-width:520px;margin:0 auto;border-radius:16px}
.afpwa-top{top:0;bottom:auto;padding-top:calc(12px + env(safe-area-inset-top,0px));box-shadow:0 8px 28px rgba(0,0,0,.3);transform:translateY(-130%)}
.afpwa-banner.afpwa-in{transform:none;opacity:1}
.afpwa-ico{width:44px;height:44px;border-radius:11px;flex:none;object-fit:cover;background:rgba(255,255,255,.08)}
.afpwa-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.afpwa-txt strong{font-size:15px;font-weight:650}
.afpwa-txt span{opacity:.82}
.afpwa-act{display:flex;flex-direction:column;gap:6px;flex:none}
.afpwa-banner button{font:inherit;cursor:pointer;border:0;border-radius:10px;padding:9px 14px;line-height:1.1}
.afpwa-yes{background:var(--afpwa-btn-bg,#22c55e);color:var(--afpwa-btn-fg,#052e16);font-weight:650}
.afpwa-no{background:transparent;color:inherit;opacity:.75;padding:4px 8px!important;font-size:13px}
.afpwa-banner button:focus-visible,.afpwa-install-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.afpwa-install-btn{font:inherit;font-weight:650;cursor:pointer;border:0;border-radius:10px;padding:10px 18px;background:var(--afpwa-btn-bg,#22c55e);color:var(--afpwa-btn-fg,#052e16)}
.afpwa-install-btn[hidden]{display:none}
/* ---------- Estilo «Debajo del menú»: centrado bajo la barra de AF Menú, solo móvil ---------- */
.afpwa-banner.afpwa-menu{position:absolute;left:50%;right:auto;top:calc(100% + 12px);bottom:auto;z-index:3;width:max-content;max-width:min(440px,calc(100vw - 20px));gap:10px;padding:9px 10px 9px 12px;border-radius:18px;box-shadow:0 10px 30px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.08);transform:translate(-50%,-10px);transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .3s ease}
.afpwa-banner.afpwa-menu.afpwa-in{transform:translate(-50%,0);opacity:1}
.afpwa-menu::before{content:"";position:absolute;top:-5px;left:50%;width:12px;height:12px;margin-left:-6px;background:inherit;border-radius:3px 0 0 0;transform:rotate(45deg);z-index:-1}
.afpwa-menu .afpwa-ico{width:38px;height:38px;border-radius:10px}
.afpwa-menu .afpwa-txt{flex:1 1 auto}
.afpwa-menu .afpwa-txt strong{font-size:14px;line-height:1.2}
.afpwa-menu .afpwa-txt span{font-size:12.5px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.afpwa-menu .afpwa-act{flex-direction:row;align-items:center;gap:6px}
.afpwa-menu .afpwa-yes,#afm .afpwa-menu .afpwa-yes{height:36px;margin:0;padding:0 16px;border:0;border-radius:999px;background:var(--afpwa-btn-bg,#22c55e);color:var(--afpwa-btn-fg,#052e16);font:700 13.5px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;white-space:nowrap;cursor:pointer;box-shadow:none}
.afpwa-menu .afpwa-x,#afm .afpwa-menu .afpwa-x{flex:none;display:grid;place-items:center;width:30px;height:30px;margin:0;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:inherit;font:400 21px/1 Arial,sans-serif;opacity:.85;cursor:pointer;box-shadow:none}
.afpwa-menu .afpwa-x:hover{opacity:1}
.afpwa-menu .afpwa-yes:focus-visible,.afpwa-menu .afpwa-x:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media (max-width:380px){.afpwa-ico{display:none}}
@media (prefers-reduced-motion:reduce){.afpwa-banner,.afpwa-banner.afpwa-menu{transition:none}}
