/* ACEADVANCE — Popup promocional (fragment/ace_popup.php). Autónomo: sirve en la web y en la vista previa del admin. */
.ace-popup { position: fixed; z-index: 1200; bottom: 20px; left: 20px; width: 340px; max-width: calc(100vw - 32px); font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.ace-popup[hidden] { display: none; }
.ace-popup.is-open { opacity: 1; transform: none; pointer-events: auto; }
.ace-popup--derecha { left: auto; right: 20px; }
.ace-popup--centro { inset: 0; width: auto; max-width: none; display: grid; place-items: center; transform: none; }
.ace-popup--centro .ace-popup__card { width: 420px; max-width: calc(100vw - 32px); transform: scale(.96); transition: transform .25s ease; }
.ace-popup--centro.is-open .ace-popup__card { transform: none; }
.ace-popup__overlay { position: absolute; inset: 0; background: rgba(10, 20, 60, .55); }
.ace-popup__card { position: relative; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 100% 0%, #2A4BFF 0%, #1F3FE6 28%, #0A1A5C 70%); color: #fff; box-shadow: 0 24px 60px rgba(10, 20, 60, .45); }
.ace-popup--img .ace-popup__card { background: #0A1A5C; }
.ace-popup__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 14px; cursor: pointer; display: grid; place-items: center; transition: background .15s ease; }
.ace-popup__x:hover { background: rgba(255, 255, 255, .3); }
.ace-popup--img .ace-popup__x { background: rgba(0, 0, 0, .45); }
.ace-popup__banner { display: block; width: 100%; height: auto; }
.ace-popup__body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.ace-popup__kicker { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: #FACC15; color: #0A1A5C; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ace-popup__title { font-size: 24px; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; padding-right: 28px; }
.ace-popup__text { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.ace-popup__items { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ace-popup__items li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.ace-popup__ico { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 16px; font-weight: 800; }
.ace-popup__items b { display: block; font-size: 14px; }
.ace-popup__items small { display: block; font-size: 12px; color: rgba(255, 255, 255, .72); line-height: 1.35; }
.ace-popup__btns { display: flex; gap: 8px; margin-top: 6px; }
.ace-popup__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; color: #0A1A5C !important; font-weight: 800; font-size: 14px; text-decoration: none !important; white-space: nowrap; transition: transform .12s ease; }
.ace-popup__btn:hover { transform: translateY(-1px); }
.ace-popup__btn--ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255, 255, 255, .45); font-weight: 700; }
body.ace-cmpbar-on .ace-popup:not(.ace-popup--centro) { bottom: 96px; }
@media (max-width: 640px) {
    .ace-popup:not(.ace-popup--centro) { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; }
    .ace-popup__body { padding: 18px 16px 16px; }
    .ace-popup__title { font-size: 21px; }
    .ace-popup__items li:nth-child(n+4) { display: none; } /* en celular, máximo 3 líneas */
}
@media (prefers-reduced-motion: reduce) { .ace-popup, .ace-popup__card { transition: none; } }
