/* Avatar flotante Mirtha — mismo patrón que San Miguel, más pequeño */
#avatar-flotante-mirtha {
  position: fixed !important;
  right: 12px;
  bottom: 14px;
  z-index: 2147483000 !important;
  width: 118px;
  font-family: Poppins, system-ui, sans-serif;
  user-select: none;
  touch-action: none;
}
#avatar-flotante-mirtha.af-hide { display: none !important; }

#avatar-flotante-mirtha .af-bubble {
  position: relative;
  background: #fff;
  color: #0078a5;
  border: 2px solid #0078a5;
  border-radius: 14px;
  padding: 7px 9px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 12px 28px rgba(0,120,165,.28), 0 0 0 0 rgba(0,120,165,.45);
  margin-bottom: 8px;
  min-height: 52px;
  animation: af-bubble-pulse 1.8s ease-in-out infinite;
}
#avatar-flotante-mirtha .af-bubble:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  margin-left: -7px;
  border: 8px solid transparent;
  border-top-color: #0078a5;
  border-bottom-width: 0;
}
#avatar-flotante-mirtha .af-msg { display: none; color: #0078a5; }
#avatar-flotante-mirtha .af-msg.af-on {
  display: block;
  color: #0078a5;
  animation: af-text-pop 0.55s ease-out;
}

@keyframes af-bubble-pulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(0,120,165,.28), 0 0 0 0 rgba(0,120,165,.4); transform: translateY(0); }
  50% { box-shadow: 0 14px 32px rgba(0,120,165,.38), 0 0 0 8px rgba(0,120,165,0); transform: translateY(-2px); }
}
@keyframes af-text-pop {
  0% { opacity: 0; transform: scale(0.92); }
  60% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

#avatar-flotante-mirtha .af-stage {
  position: relative;
  width: 96px;
  margin: 0 auto;
  cursor: grab;
}
#avatar-flotante-mirtha.af-drag .af-stage { cursor: grabbing; }

#avatar-flotante-mirtha .af-plate {
  width: 96px;
  height: auto;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  display: block;
  position: relative;
}
#avatar-flotante-mirtha .af-figure {
  width: 96px;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(15,37,64,.35));
  transform: none;
}

#avatar-flotante-mirtha .af-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #e30613;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(227,6,19,.45);
  z-index: 3;
  padding: 0;
}
#avatar-flotante-mirtha .af-close:hover { transform: scale(1.08); }

@media (max-width: 480px) {
  #avatar-flotante-mirtha { width: 108px; right: 8px; bottom: 10px; }
  #avatar-flotante-mirtha .af-plate,
  #avatar-flotante-mirtha .af-stage { width: 84px; }
  #avatar-flotante-mirtha .af-figure { width: 84px; max-height: 130px; }
  #avatar-flotante-mirtha .af-bubble { font-size: 10px; min-height: 48px; }
}