:root{--safe:env(safe-area-inset-bottom)}
html,body{height:100%;margin:0}
.spaip-stage{position:fixed;inset:0;background:#000;overflow:hidden}
.spaip-bg{position:absolute;inset:0;background-position:top center;background-repeat:no-repeat;background-size:cover}
.spaip-bg.contain{background-size:contain}

/* Modal (Modelo A) */
.spaip-modal{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;z-index:99999}
.spaip-modal.show{display:flex}
.spaip-card{background:#fff;max-width:440px;width:92%;padding:20px;border-radius:16px;text-align:center;box-shadow:0 12px 30px rgba(0,0,0,.3)}
.spaip-btn{display:block;margin:10px 0;padding:14px 18px;border-radius:12px;text-decoration:none;font-weight:800}
.spaip-yes{background:#10b981;color:#fff}
.spaip-no{background:#f97316;color:#fff}
.spaip-x{position:fixed;top:10px;right:12px;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.95);display:none;align-items:center;justify-content:center;font-weight:900;text-decoration:none;z-index:100000;box-shadow:0 2px 10px rgba(0,0,0,.2)}
.spaip-x.show{display:flex}

/* Bottom sheet (Modelo B) */
.spaip-bottom{position:fixed;left:0;right:0;bottom:0;z-index:99999;display:none;box-shadow:0 -8px 30px rgba(0,0,0,.12);padding:16px calc(20px + var(--safe)) max(16px, var(--safe))}
.spaip-bottom.show{display:block}
.spaip-bottom .wrap{max-width:1200px;margin:0 auto;display:flex;gap:16px;align-items:center;justify-content:space-between}
.spaip-bottom .text{display:flex;gap:14px;align-items:center}
.spaip-bottom .text img{width:56px;height:56px;object-fit:cover;border-radius:12px}
.spaip-bottom .title{font-weight:900;margin-bottom:6px}
.spaip-bottom .desc{opacity:.95;line-height:1.35}
.spaip-bottom .actions a{display:inline-block;margin:0 6px;padding:12px 18px;border-radius:12px;text-decoration:none;font-weight:900}
@media(max-width:720px){
  .spaip-bottom .wrap{flex-direction:column;align-items:stretch}
  .spaip-bottom .actions a{display:block;width:100%;margin-top:10px;text-align:center}
}