/* public/css/whatsapp-float.css */

    /* ─── Botón flotante ─── */
    .btn-whatsapp-float {
      position: fixed;
      bottom: 28px;
      right: 28px;
      display: flex;
      align-items: center;
      background: #25D366;
      color: #fff;
      text-decoration: none;
      border-radius: 50px;
      padding: 0;
      width: 60px;
      height: 60px;
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
      transition:
        width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease;
      z-index: 9999;
      white-space: nowrap;
    }
 
    .btn-whatsapp-float:hover {
      width: 195px;
      padding: 0 20px 0 14px;
      box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
    }
 
    /* ─── Ícono SVG de WhatsApp ─── */
    .wsp-icon {
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      /* centrado cuando está solo */
      margin-left: 14px;
      transition: margin 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
 
    .btn-whatsapp-float:hover .wsp-icon {
      margin-left: 0;
    }
 
    /* ─── Texto ─── */
    .texto-wsp {
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.01em;
      opacity: 0;
      max-width: 0;
      overflow: hidden;
      margin-left: 0;
      transition:
        opacity 0.2s ease 0.1s,
        max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
 
    .btn-whatsapp-float:hover .texto-wsp {
      opacity: 1;
      max-width: 140px;
      margin-left: 10px;
    }
 
    /* ─── Pulso de atención ─── */
    .btn-whatsapp-float::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: rgba(255,255,255,0.15);
      opacity: 0;
      animation: pulse 2.8s ease-in-out infinite;
    }
 
    @keyframes pulse {
      0%, 100% { transform: scale(1);   opacity: 0; }
      50%       { transform: scale(1.18); opacity: 1; }
    }