/* BLUE. · avisos y diálogos (js/avisos.js). Tarjeta de tinta sobre el papel: se nota sin gritar. */
.ba-pila { position: fixed; left: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px;
  width: min(400px, calc(100vw - 40px)); pointer-events: none; }
.ba-aviso { position: relative; display: grid; grid-template-columns: auto 1fr auto auto; align-items: start; gap: 2px 12px;
  padding: 14px 10px 16px 14px; border-radius: 14px; overflow: hidden; pointer-events: auto;
  background: #1D1C1A; color: #F6F3EE; font: 400 15px/1.45 "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 18px 40px -18px rgba(29,28,26,.55);
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .22s ease, transform .32s cubic-bezier(.2,1.25,.4,1); }
.ba-aviso.ba-dentro { opacity: 1; transform: none; }
.ba-aviso.ba-fuera { opacity: 0; transform: translateY(6px); transition-duration: .2s; }
.ba-marca { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 "Hanken Grotesk", sans-serif; margin-top: 1px; }
.ba-t-exito .ba-marca { background: #E7F1EA; color: #2F6B4F; }
.ba-t-info .ba-marca { background: #E6ECF4; color: #24426B; font-family: Georgia, serif; font-style: italic; }
.ba-t-aviso .ba-marca { background: #F6EEDD; color: #8A5A12; }
.ba-t-error .ba-marca { background: #C9483C; color: #fff; }
.ba-cuerpo { min-width: 0; padding-top: 2px; }
.ba-titulo { margin: 0 0 2px; font-weight: 600; }
.ba-texto { margin: 0; color: rgba(246,243,238,.86); overflow-wrap: break-word; }
.ba-titulo + .ba-texto { font-size: 14px; }
.ba-accion { align-self: center; border: 0; border-radius: 999px; background: rgba(246,243,238,.12); color: #CFE0F5;
  font: 600 14px/1 "Hanken Grotesk", sans-serif; padding: 9px 12px; cursor: pointer; white-space: nowrap; }
.ba-accion:hover, .ba-accion:focus-visible { background: rgba(246,243,238,.2); outline: 0; }
.ba-cerrar { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: rgba(246,243,238,.6);
  font: 400 20px/1 "Hanken Grotesk", sans-serif; cursor: pointer; }
.ba-cerrar:hover, .ba-cerrar:focus-visible { background: rgba(246,243,238,.1); color: #F6F3EE; outline: 0; }
.ba-tiempo { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: 0 50%;
  background: rgba(246,243,238,.28); animation: ba-tiempo linear forwards; }
.ba-t-error .ba-tiempo { background: #C9483C; }
.ba-pausa .ba-tiempo { animation-play-state: paused; }
@keyframes ba-tiempo { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.ba-dialogo { border: 0; padding: 0; border-radius: 18px; width: min(460px, calc(100vw - 32px)); background: #FFFEFC; color: #1D1C1A;
  box-shadow: 0 30px 70px -30px rgba(29,28,26,.55); font: 400 16px/1.5 "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.ba-dialogo::backdrop { background: rgba(29,28,26,.38); backdrop-filter: blur(2px); }
.ba-dialogo[open] { animation: ba-abre .28s cubic-bezier(.2,1.2,.4,1); }
@keyframes ba-abre { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.ba-dialogo form { padding: 24px 24px 20px; }
.ba-dialogo h2 { margin: 0 0 8px; font: 400 24px/1.2 "Newsreader", Georgia, serif; letter-spacing: -.01em; }
.ba-dtexto { margin: 0 0 16px; color: #5F5B54; }
.ba-campo { display: block; margin: 0 0 12px; }
.ba-campo span { display: block; font-size: 14px; color: #5F5B54; margin-bottom: 4px; }
.ba-campo input, .ba-campo select, .ba-campo textarea { width: 100%; font: inherit; color: inherit; background: #fff; border: 1px solid #E4DFD6;
  border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.ba-campo input:focus, .ba-campo select:focus, .ba-campo textarea:focus { outline: 2px solid #24426B; outline-offset: 1px; border-color: #24426B; }
.ba-error { margin: 0; min-height: 1.2em; color: #9B2C24; font-size: 14px; }
.ba-botones { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ba-botones button { font: 600 15px/1 "Hanken Grotesk", sans-serif; border-radius: 999px; padding: 12px 18px; min-height: 44px; cursor: pointer; }
.ba-no { background: transparent; border: 1px solid #E4DFD6; color: #1D1C1A; }
.ba-si { background: #24426B; border: 1px solid #24426B; color: #fff; }
.ba-peligro .ba-si { background: #9B2C24; border-color: #9B2C24; }
.ba-botones button:focus-visible { outline: 2px solid #24426B; outline-offset: 2px; }
@media (max-width: 520px) {
  .ba-pila { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .ba-botones button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-aviso, .ba-dialogo[open] { transition: none; animation: none; }
}
@media print { .ba-pila { display: none; } }
