/* Botón y ventana para apoyar a TonoSana */
.ap-boton {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: .92rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .14); cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.ap-boton:hover { border-color: var(--brand); transform: translateY(-1px); }
.ap-boton:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ap-corazon { color: #e5484d; font-size: 1.05rem; line-height: 1; }

.ap-dialogo {
  width: min(420px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.ap-dialogo::backdrop { background: rgba(10, 16, 15, .55); }
.ap-caja { position: relative; padding: 22px 20px 18px; }
.ap-cerrar {
  position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: none; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.ap-cerrar:hover { background: var(--brand-soft); color: var(--text); }
.ap-titulo { margin: 0 0 6px; font-size: 1.2rem; }
.ap-texto { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.ap-opcion {
  display: block; margin-top: 8px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: #fff;
}
.ap-opcion strong { display: block; font-size: 1rem; }
.ap-opcion small { display: block; opacity: .9; font-size: .82rem; }
.ap-opcion:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ap-paypal { background: #0070e0; }
.ap-paypal:hover { background: #005ea6; }
.ap-mp { background: #009ee3; }
.ap-mp:hover { background: #0086c3; }
.ap-nota { margin: 12px 0 0; color: var(--muted); font-size: .8rem; }

/* El botón no tapa el contenido final de la página */
.ap-activo .site-footer { padding-bottom: 72px; }

@media (max-width: 520px) {
  .ap-boton { right: 12px; bottom: 12px; padding: 9px 14px; }
}
@media print { .ap-boton { display: none; } }
