/* Modal global de confirmación reutilizable */
.app-confirm{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.62);
  backdrop-filter:blur(10px);
  z-index:4200;
}
.app-confirm.show{display:flex;}
.app-confirm-card{
  width:min(520px, 100%);
  border:1px solid rgba(255,255,255,.14);
  border-radius:24px;
  background:linear-gradient(145deg,#181818,#101010);
  color:white;
  box-shadow:0 28px 80px rgba(0,0,0,.5);
  overflow:hidden;
}
.app-confirm-head{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:22px 24px 12px;
}
.app-confirm-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:rgba(255,179,71,.14);
  color:#ffb347;
  font-size:22px;
  flex:0 0 auto;
}
.app-confirm-title{
  margin:0;
  font-size:22px;
  line-height:1.15;
}
.app-confirm-message{
  margin:7px 0 0;
  color:#d6d6d6;
  line-height:1.55;
  white-space:pre-line;
}
.app-confirm-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:18px 24px 24px;
  flex-wrap:wrap;
}
.app-confirm-btn{
  border:0;
  border-radius:999px;
  padding:12px 18px;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}
.app-confirm-btn:hover{transform:translateY(-1px);filter:brightness(1.06);}
.app-confirm-cancel{background:rgba(255,255,255,.08);color:#f5f5f5;border:1px solid rgba(255,255,255,.12);}
.app-confirm-ok{background:#ffb347;color:#111;}
.app-confirm-danger{background:#ef4444;color:white;}
.app-confirm-warning{background:#f97316;color:#111;}
@media(max-width:560px){
  .app-confirm{align-items:flex-end;padding:12px;}
  .app-confirm-card{border-radius:22px;}
  .app-confirm-actions{flex-direction:column-reverse;}
  .app-confirm-btn{width:100%;}
}

/* Etapa 111: las confirmaciones globales siempre superan cualquier modal. */
.app-confirm{z-index:22000!important}
.app-confirm{z-index:190000!important}
