/* Botón flotante "Diagnóstico Financiero" — visible en todo el sitio */
.mf-float-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: #FF5C5C;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 18px 10px;
  border-radius: 10px 0 0 10px;
  text-decoration: none;
  z-index: 999998;
  box-shadow: -2px 2px 10px rgba(26, 26, 26, 0.18);
  transition: padding-right .15s ease, background .15s ease;
  cursor: pointer;
}
.mf-float-tab:hover {
  padding-right: 14px;
  background: #E14B44;
  color: #ffffff;
}

/* Overlay / fondo oscuro del popup */
.mf-float-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mf-float-overlay.mf-float-open {
  display: flex;
}

/* Caja del popup */
.mf-float-modal {
  position: relative;
  background: #FFF5F1;
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px 20px 20px;
}
.mf-float-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #1A1A1A;
  color: #ffffff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.mf-float-close:hover { background: #FF5C5C; }

@media (max-width: 480px) {
  .mf-float-tab { font-size: 12.5px; padding: 14px 8px; }
  .mf-float-modal { padding: 26px 14px 16px; border-radius: 14px; }
}
