@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

  :root {
    --chat-primary: #C8102E;
    --chat-primary-dark: #a00d24;
    --chat-bg: #ffffff;
    --chat-user-bg: #C8102E;
    --chat-bot-bg: #f1f3f5;
    --chat-text: #1a1a2e;
    --chat-text-light: #6c757d;
    --chat-border: #e9ecef;
    --chat-shadow: 0 12px 48px rgba(0,0,0,0.18);
  }

  #seguiauto-chat-btn {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--chat-primary);
    border: none;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(200,16,46,0.4);
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease;
  }
  #seguiauto-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(200,16,46,0.55);
  }
  #seguiauto-chat-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
    transition: transform 0.3s ease;
  }
  #seguiauto-chat-btn.active svg.icon-chat { display: none; }
  #seguiauto-chat-btn:not(.active) svg.icon-close { display: none; }

  #seguiauto-chat-btn .pulse-ring {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3px solid var(--chat-primary);
    animation: pulseRing 2s ease-out infinite;
    pointer-events: none;
  }
  #seguiauto-chat-btn.active .pulse-ring { display: none; }

  @keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
  }

  #seguiauto-chatbox {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 140px);
    background: var(--chat-bg);
    border-radius: 20px;
    box-shadow: var(--chat-shadow);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.34,1.56,.64,1);
    font-family: 'DM Sans', sans-serif;
  }
  #seguiauto-chatbox.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
  }

  .sachat-header {
    background: linear-gradient(135deg, var(--chat-primary) 0%, var(--chat-primary-dark) 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  .sachat-header-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }
  .sachat-header-info h4 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
  }
  .sachat-header-info p {
    margin: 2px 0 0;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 400;
  }

  .sachat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
  }
  .sachat-messages::-webkit-scrollbar { width: 4px; }
  .sachat-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

  .sachat-msg {
    max-width: 85%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--chat-text);
    animation: msgIn 0.3s ease-out;
    word-wrap: break-word;
  }
  .sachat-msg a {
    color: var(--chat-primary);
    text-decoration: underline;
    font-weight: 500;
  }
  .sachat-msg.bot {
    background: var(--chat-bot-bg);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
  }
  .sachat-msg.user {
    background: var(--chat-user-bg);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
  }

  @keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .sachat-quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 8px;
    animation: msgIn 0.3s ease-out;
  }
  .sachat-quick-btn {
    background: #fff;
    border: 1.5px solid var(--chat-border);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-family: 'DM Sans', sans-serif;
    color: var(--chat-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
  }
  .sachat-quick-btn:hover {
    border-color: var(--chat-primary);
    color: var(--chat-primary);
    background: #fef2f4;
  }

  .sachat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--chat-border);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    background: #fafafa;
  }
  .sachat-input-area input {
    flex: 1;
    border: 1.5px solid var(--chat-border);
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
  }
  .sachat-input-area input:focus {
    border-color: var(--chat-primary);
  }
  .sachat-input-area input::placeholder {
    color: #adb5bd;
  }
  .sachat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--chat-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .sachat-input-area button:hover { background: var(--chat-primary-dark); }
  .sachat-input-area button svg { width: 18px; height: 18px; fill: #fff; }

  .sachat-typing {
    display: flex;
    gap: 4px;
    padding: 11px 15px;
    align-self: flex-start;
    background: var(--chat-bot-bg);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    animation: msgIn 0.3s ease-out;
  }
  .sachat-typing span {
    width: 7px; height: 7px;
    background: #adb5bd;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
  }
  .sachat-typing span:nth-child(2) { animation-delay: 0.2s; }
  .sachat-typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
  }

  @media (max-width: 440px) {
    #seguiauto-chatbox {
      right: 0;
      bottom: 0;
      width: 100vw;
      height: 100vh;
      max-height: 100vh;
      border-radius: 0;
    }
    #seguiauto-chat-btn { bottom: 18px; right: 18px; }
  }
  
  
  /*BOTON FLOTANTE TELEGRAM*/
.float {
  position:fixed;
  z-index: 999;
  right: 28px;
    width: 62px;
    height: 62px;
  bottom: 20px;
  background: url(whatsapp-blanco.png), #C8102E;
  background-size: 35px 35px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius:50%;
  border: none;
  text-align:center;
}
.float:hover {
  text-decoration: none;
  background: url(whatsapp-blanco.png), #000000;
  background-size: 35px 35px;
  background-repeat: no-repeat;
  background-position: center;
}
/*FIN BOTON FLOTANTE WHATSAPP*/

@media (max-width: 768px) {
    #seguiauto-chat-btn {
        bottom: 100px;
        right: 28px;
    }
}