/* ── WhatsApp float compartido ──
   Fuente canónica: index.html
   Usado por: index.html, catalogo.html
*/
.whatsapp-float{
  position:fixed;z-index:28;right:24px;bottom:24px;
  width:60px;height:60px;border-radius:50%;
  display:grid;place-items:center;
  background:#25D366;color:#fff;
  box-shadow:0 8px 28px rgba(37,211,102,.38);
  transition:transform .25s ease,box-shadow .25s ease,opacity .2s ease;
  outline:none;cursor:pointer;
  border:none;
}
.whatsapp-float:hover{
  transform:scale(1.08);
  box-shadow:0 14px 36px rgba(37,211,102,.48);
}
.whatsapp-float svg{
  width:32px;height:32px;display:block;
}
/* tooltip solo en desktop */
.whatsapp-tooltip{
  position:fixed;z-index:27;right:92px;bottom:38px;
  background:#fff;color:#172033;font-size:.82rem;font-weight:700;
  padding:10px 16px;border-radius:999px;
  box-shadow:0 8px 24px rgba(7,23,53,.14);
  white-space:nowrap;
  opacity:0;pointer-events:none;
  transition:opacity .2s ease;
}
.whatsapp-float:hover + .whatsapp-tooltip,
.whatsapp-tooltip:hover{
  opacity:1;
}
/* ocultar tooltip en móvil */
@media(max-width:768px){
  .whatsapp-tooltip{display:none}
}
body.menu-open .whatsapp-float{
  opacity:0;pointer-events:none;
}
@media(max-width:640px){
  .whatsapp-float{
    right:16px;bottom:calc(18px + env(safe-area-inset-bottom, 0px));
    width:54px;height:54px;
  }
  .whatsapp-float svg{
    width:28px;height:28px;
  }
}

/* ── Panel desplegable de dos asesores ── */
.whatsapp-advisors{
  position:fixed;z-index:99999;
  right:20px;bottom:100px;
  display:flex;flex-direction:column;gap:8px;
  background:#fff;border-radius:16px;
  padding:12px 14px 14px;
  box-shadow:0 8px 32px rgba(7,23,53,.16);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  max-width:calc(100vw - 28px);
  width:auto;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s;
  will-change:transform,opacity;
}
.whatsapp-advisors.is-open{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  transition:opacity .2s ease,transform .2s ease,visibility 0s linear 0s;
}
.whatsapp-advisors__header{
  font-size:.75rem;font-weight:700;color:#647084;
  text-transform:uppercase;letter-spacing:.08em;
  margin-bottom:2px;padding:0 2px;
}
.whatsapp-advisors__btn{
  display:flex;align-items:center;gap:10px;
  width:100%;padding:10px 12px;border-radius:12px;
  background:#25D366;color:#fff;text-decoration:none;
  font-weight:700;font-size:.88rem;
  transition:transform .2s ease,box-shadow .2s ease;
  outline:none;border:none;cursor:pointer;
  line-height:1.2;
}
.whatsapp-advisors__btn:hover,
.whatsapp-advisors__btn:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(37,211,102,.35);
}
.whatsapp-advisors__btn svg{
  width:22px;height:22px;min-width:22px;min-height:22px;
  max-width:22px;max-height:22px;
  flex-shrink:0;display:block;
}
.whatsapp-advisors__btn span{
  flex:1;text-align:left;
}
.whatsapp-advisors__btn small{
  display:block;font-size:.7rem;font-weight:500;opacity:.85;margin-top:1px;
}
body.menu-open .whatsapp-advisors{
  opacity:0;pointer-events:none;visibility:hidden;
}

@media(max-width:768px){
  .whatsapp-advisors{
    right:10px;bottom:86px;
    padding:10px 10px 12px;gap:6px;max-width:calc(100vw - 28px);width:auto;
    border-radius:14px;
  }
  .whatsapp-advisors__header{font-size:.7rem;margin-bottom:0;}
  .whatsapp-advisors__btn{padding:9px 10px;font-size:.82rem;gap:8px;}
  .whatsapp-advisors__btn svg{
    width:20px;height:20px;min-width:20px;min-height:20px;
    max-width:20px;max-height:20px;
  }
  .whatsapp-advisors__btn small{font-size:.65rem;}
}
@media(max-width:380px){
  .whatsapp-advisors{
    right:6px;bottom:78px;
    max-width:calc(100vw - 16px);width:auto;
    padding:8px 8px 10px;gap:5px;border-radius:12px;
  }
  .whatsapp-advisors__btn{padding:8px;font-size:.78rem;gap:6px;border-radius:10px;}
  .whatsapp-advisors__btn svg{
    width:18px;height:18px;min-width:18px;min-height:18px;
    max-width:18px;max-height:18px;
  }
}
