/* Pestaña lateral (sin fijar top/left aquí; todo viene desde PHP inline) */
#mfc-tab,
.mfc-tab {
  position: fixed;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  cursor: pointer;
  z-index: 999999;
  border-radius: 6px;
  box-shadow: none;
}

/* Efecto parpadeo + sombra oscura (amplificado) */
.mfc-blink {
  animation: mfc-blink 2.5s ease-in-out infinite;
  box-shadow: 0 0 24px rgba(0,0,0,0.8);
}

@keyframes mfc-blink {
  0%, 100% {
    box-shadow: 0 0 16px rgba(0,0,0,0.5);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 36px rgba(0,0,0,1);
    opacity: 0.85;
  }
}

/* Overlay centrado; el background llega inline desde PHP (panel_bg o none) */
#mfc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  z-index: 999998;
}

/* Panel sin fondo, solo iconos flotando */
#mfc-panel {
  background: none !important;
  box-shadow: none !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  width: auto;
  position: relative;
}

/* Iconos PNG puros con sombra oscura (escritorio) */
.mfc-icon.has-img {
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
  padding: 0;
}
.mfc-icon.has-img img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(6px 6px 10px rgba(0,0,0,0.85));
  transition: transform .2s ease, opacity .2s ease;
}
.mfc-icon.has-img:hover img {
  opacity: 0.95;
  transform: scale(1.04);
}

/* Fallback circular si no hay PNG */
.mfc-icon.no-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: #888;
  transition: transform .2s ease, opacity .2s ease;
}
.mfc-icon.no-img:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.mfc-whatsapp.no-img { background: #25d366; }
.mfc-email.no-img    { background: #0072c6; }
.mfc-phone.no-img    { background: #eab308; color: #000; }
.mfc-contact.no-img  { background: #666; }

/* Mobile: iconos más grandes, centrados y con sombra oscura */
@media (max-width: 768px) {
  #mfc-panel {
    justify-content: center;
    align-items: center;
  }

  .mfc-icon.has-img img {
    width: 30vw;
    height: 30vw;
    filter: drop-shadow(5px 5px 8px rgba(0,0,0,0.85));
  }
}
