/* ============================================================
   Aviso flotante de la app · abajo a la IZQUIERDA
   El lado contrario al launcher del chat, que vive abajo a la derecha.
   Pequeño, anclado y descartable: nunca un intersticial que tape.
   ============================================================ */

.buba-app-pill {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9997;                /* por debajo del chat (9998/9999) y del banner
                                   de cookies (10000): si coinciden, manda el
                                   consentimiento */
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 12px;
  background: #FBF6EC;
  border: 1px solid rgba(201, 167, 108, 0.45);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(74, 45, 30, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: calc(100vw - 48px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.buba-app-pill[data-visible="true"] {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.buba-app-pill-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
}

.buba-app-pill-glyph {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buba-app-pill-glyph svg { width: 19px; height: 19px; fill: #FBF6EC; display: block; }

.buba-app-pill-text { display: flex; flex-direction: column; line-height: 1.25; }

.buba-app-pill-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: #1A1A1A;
  letter-spacing: 0.01em;
}

.buba-app-pill-sub {
  font-size: 0.68rem;
  color: #6B6058;   /* 2,9:1 no llegaba a AA; con este, 5,67:1 */
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.buba-app-pill-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(74, 45, 30, 0.55);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms, color 180ms;
}

.buba-app-pill-close:hover { background: rgba(201, 167, 108, 0.16); color: #1A1A1A; }
.buba-app-pill-link:focus-visible,
.buba-app-pill-close:focus-visible { outline: 2px solid #A8894F; outline-offset: 3px; }

@media (max-width: 600px) {
  .buba-app-pill {
    left: 12px;
    bottom: 12px;
    padding: 8px 10px 8px 10px;
    gap: 9px;
    max-width: calc(100vw - 88px);   /* deja libre el launcher del chat */
  }
  .buba-app-pill-glyph { width: 30px; height: 30px; border-radius: 8px; }
  .buba-app-pill-glyph svg { width: 17px; height: 17px; }
  .buba-app-pill-title { font-size: 0.78rem; }
  .buba-app-pill-sub { font-size: 0.62rem; }
  .buba-app-pill-close { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .buba-app-pill { transition: none !important; transform: none !important; }
}
