    /* Botón flotante */
    .whatsapp-btn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background-color: #25D366;
      color: #fff;
      border-radius: 50px;
      padding: 12px 18px;
      font-family: sans-serif;
      font-size: 16px;
      text-decoration: none;
      display: flex;
      align-items: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      transition: transform 0.2s, box-shadow 0.2s;
      z-index: 1000;
    }
    .whatsapp-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    }
    .whatsapp-btn i { margin-right: 10px; font-size: 20px; }

    /* Contenedor de chat MÁS GRANDE */
    .chat-container {
      position: fixed;
      bottom: 100px; /* encima del botón */
      right: 20px;
      width: 320px;
      max-width: 90%;
      max-height: 260px;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      padding: 12px;
      font-family: sans-serif;
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow-y: auto;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.3s ease, transform 0.3s ease;
      z-index: 999;
    }
    .chat-container.show {
      opacity: 1;
      transform: translateY(0);
    }

    /* Mensajes */
    .message {
      max-width: 80%;
      padding: 8px 12px;
      border-radius: 12px;
      font-size: 14px;
      line-height: 1.4;
      position: relative;
      white-space: pre-wrap;
      word-wrap: break-word;
    }
    .message.bot {
      background: #e5f7ea;
      align-self: flex-start;
      border-bottom-left-radius: 4px;
    }
    .message.user {
      background: #dcf8c6;
      align-self: flex-end;
      border-bottom-right-radius: 4px;
    }

    /* Cursor de escritura */
    .typing::after {
      content: '';
      display: inline-block;
      width: 3px;
      height: 1em;
      background: #25D366;
      margin-left: 2px;
      animation: blink 1s steps(2,end) infinite;
      vertical-align: bottom;
    }
    @keyframes blink {
      0%,100% { opacity: 1; }
      50% { opacity: 0; }
    }