/* ================================================
   Botones flotantes WhatsApp & Messenger
   Sitio: manticaberio.edu.ni
   Archivo: assets/css/wc.css
   ================================================ */

.chat-buttons {
  position: fixed;
  bottom: 32px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
  z-index: 9999;
}

.chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.chat-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 26px rgba(0,0,0,.24);
}

.chat-btn::after {
  content: attr(data-label);
  position: absolute;
  right: 64px;
  background: rgba(30,30,30,.82);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.chat-btn:hover::after { opacity: 1; }

.chat-btn svg { width: 30px; height: 30px; }

/* ©€©€ Botš®n principal (toggle) ©€©€ */
.chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1a73e8;
  box-shadow: 0 4px 18px rgba(26,115,232,.5);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .2s ease;
  flex-shrink: 0;
}
.chat-toggle:hover { background: #1558b0; transform: scale(1.08); }
.chat-toggle svg   { width: 36px; height: 36px; transition: transform .3s ease; }

.chat-buttons.open .chat-toggle svg {
  transform: rotate(0deg);
}

/* ©€©€ Botones hijos (ocultos por defecto) ©€©€ */
.chat-children {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease;
}
.chat-buttons.open .chat-children {
  max-height: 200px;
  opacity: 1;
}

/* Pulso suave en WhatsApp */
@keyframes pulse-wa {
  0%   { box-shadow: 0 4px 16px rgba(37,211,102,.35); }
  60%  { box-shadow: 0 4px 22px rgba(37,211,102,.65), 0 0 0 10px rgba(37,211,102,.08); }
  100% { box-shadow: 0 4px 16px rgba(37,211,102,.35); }
}
.btn-whatsapp { animation: pulse-wa 2.4s ease-in-out infinite; }
.btn-whatsapp:hover { animation: none; }

@media (max-width: 480px) {
  .chat-buttons { bottom: 20px; right: 16px; }
  .chat-btn     { width: 50px; height: 50px; }
  .chat-btn svg { width: 26px; height: 26px; }
  .chat-toggle  { width: 54px; height: 54px; }
}