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

  :root {
    --cht-primary: #48b05c;
    --cht-primary-dark: #a00d24;
    --cht-accent: #00b894;
    --cht-bg: #ffffff;
    --cht-user-bg: #C8102E;
    --cht-bot-bg: #f1f3f5;
    --cht-text: #1a1a2e;
    --cht-border: #e9ecef;
  }

  #sa-ev-chat-btn {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--cht-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;
  }
  #sa-ev-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(200,16,46,0.55);
  }
  #sa-ev-chat-btn svg { width: 28px; height: 28px; fill: white; transition: transform 0.3s ease; }
  #sa-ev-chat-btn.active .sa-ev-icon-chat { display: none; }
  #sa-ev-chat-btn:not(.active) .sa-ev-icon-close { display: none; }

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

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

  #sa-ev-chatbox {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 388px;
    max-width: calc(100vw - 32px);
    height: 550px;
    max-height: calc(100vh - 140px);
    background: var(--cht-bg);
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18);
    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;
  }
  #sa-ev-chatbox.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
  }

  .saev-header {
    background: linear-gradient(135deg, var(--cht-primary) 0%, var(--cht-primary-dark) 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  .saev-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;
  }
  .saev-header-info h4 { margin: 0; color: #fff; font-size: 15px; font-weight: 700; }
  .saev-header-info p { margin: 2px 0 0; color: rgba(255,255,255,0.8); font-size: 12px; }

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

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

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

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

  .saev-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--cht-border);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    background: #fafafa;
  }
  .saev-input-area input {
    flex: 1;
    border: 1.5px solid var(--cht-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;
  }
  .saev-input-area input:focus { border-color: var(--cht-primary); }
  .saev-input-area input::placeholder { color: #adb5bd; }
  .saev-input-area button {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--cht-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .saev-input-area button:hover { background: var(--cht-primary-dark); }
  .saev-input-area button svg { width: 18px; height: 18px; fill: #fff; }

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

  @media (max-width: 440px) {
    #sa-ev-chatbox { right: 0; bottom: 0; width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
    #sa-ev-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), #48b05c;
  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) {
    #sa-ev-chat-btn {
        bottom: 100px;
        right: 28px;
    }
}