.is-bottom_right { position: fixed; bottom: 15px; right: 15px; z-index: 99; }
/* =====================================================
   WHATSAPP CHAT – MEJORA VISUAL FINAL
   ===================================================== */

/* BOTÓN FLOTANTE */
.whatsappchat .help-you-btn {
  background-color: #4ca637 !important;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsappchat .help-you-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}

/* HEADER */
.whatsappchat .popup-top {
  background-color: #699671 !important;
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

/* AVATAR */
.whatsappchat .popup-top .image img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
}

/* NOMBRE */
.whatsappchat .popup-top .content .name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
}

/* ETIQUETA ASISTENCIA */
.whatsappchat .popup-top .content .label {
  background: rgba(255,255,255,0.18) !important;
  color: #ffffff !important;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 3px;
}

/* BOTÓN CERRAR */
.whatsappchat .close_pop_wtc svg circle {
  fill: ;
}

.whatsappchat .close_pop_wtc svg path {
  fill: #ffffff;
}

/* CAJA DEL CHAT */
.whatsappchat .popup-box {
  background-color: #e5ddd5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

/* MENSAJE */
.whatsappchat .chat-content .message {
  background: #ffffff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  color: #303030;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* INPUT ÁREA */
.whatsappchat .response {
  background: #f0f0f0;
  padding: 10px;
  border-top: 1px solid #ddd;
}

/* INPUT */
.whatsappchat .response input {
  border-radius: 999px;
  padding: 14px 54px 14px 18px;
  font-size: 14px;
  background: #ffffff;
  border: none;
  outline: none;
}

/* BOTÓN ENVIAR */
.whatsappchat .send_btn img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e5f5ff;
  padding: 6px;
}


.whatsappchat .popup-section .popup .popuptext { opacity: 0; width: 370px; border-radius: 8px; padding: 0; position: absolute; z-index: 1; top: 70px; left: 0; transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s; } 

.whatsappchat .popup-section .popup .popuptext { opacity: 0; width: 370px; border-radius: 8px; padding: 0; position: absolute; z-index: 1; top: 70px; left: 0; transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s; } 


.whatsappchat .popup-section .popup .popuptext { opacity: 0; width: 370px; border-radius: 8px; padding: 0; position: absolute; z-index: 1; top: 70px; left: 0; transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s; } 

.whatsappchat .popup-section .popup .popuptext { box-shadow: 0 8px 25px -5px rgba(45,62,79,0.15); }


.whatsappchat .popup-section .popup .popuptext .popup-box .chat-content {  border-radius: 4px; margin: 36px; max-width: 85%; }
.whatsappchat .popup-section .popup .popuptext .popup-box .chat-content .message { position: relative; background: #eee; padding: 10px 24px; }

.whatsappchat .popup-section .popup .popuptext .popup-box .response input { font-size: 15px; font-weight: normal; line-height: 1; padding: 20px 56px 20px 36px; margin: 0px; color: #4e4e4e; background-color: #ffffff; border: none; width: 100%; min-height: 59px; border-top: 1px solid #e6e6e6; outline: none; }
.whatsappchat .popup-section .popup .popuptext .popup-box .response .send_btn { position: absolute;  -ms-transform: translateY(-50%); -webkit-transform: translateY(-50%); transform: translateY(-50%); right: 40px; line-height: 0; bottom: 0px;}

/* 16-12-2019 */

.whatsappchat.is-bottom_right .popup-section .popup .popuptext { top: auto; bottom: 70px; left: auto; right: 0; opacity: 0; visibility: hidden; }
.whatsappchat.is-bottom_right .popup-section .popup .popuptext.show {opacity: 1; visibility: visible;}

/* ========================================
   OVERRIDE CASUAL — SeguroInteligente
   Pegar después del CSS original
   ======================================== */

/* --- Contenedor popup --- */
.whatsappchat .popup-section .popup .popuptext {
  width: 320px !important;
  border-radius: 20px !important;
}

.whatsappchat .popup-box {
  background-color: #203C5E;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 24px rgba(10,40,70,0.10),
              0 1px 4px rgba(10,40,70,0.06) !important;
}

/* --- Header --- */
.whatsappchat .popup-top {
  background-color: #1B3A5C !important;
  color: #000;
  padding: 18px 16px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
}

.whatsappchat .popup-top .image img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(76,184,91,0.3) !important;
}

.whatsappchat .popup-top .content .name {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

.whatsappchat .popup-top .content .label {
  background: rgba(76,184,91,0.2) !important;
  color: #6EE7A8 !important;
  font-size: 11px !important;
  padding: 2px 10px !important;
  border-radius: 10px !important;
  font-weight: 400 !important;
}

/* --- Botón cerrar --- */
.whatsappchat .close_pop_wtc svg {
  width: 28px !important;
  height: 28px !important;
}

.whatsappchat .close_pop_wtc svg circle {
  fill: rgba(255,255,255,0.08) !important;
}

.whatsappchat .close_pop_wtc svg path {
  fill: rgba(255,255,255,0.6) !important;
}

/* --- Zona del mensaje --- */
.whatsappchat .popup-section .popup .popuptext .popup-box .chat-content {
  background: #ffffff !important;
  padding: 18px 14px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: 100% !important;
}

.whatsappchat .popup-section .popup .popuptext .popup-box .chat-content .message {
  background: #F2F4F7 !important;
  border-radius: 4px 16px 16px 16px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  color: #1B3A5C !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  max-width: 88% !important;
  position: relative !important;
}

.whatsappchat .chat-content .message p {
  margin: 0 !important;
  color: #1B3A5C !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.whatsappchat .chat-content .message strong {
  font-weight: 500 !important;
  color: #1B3A5C !important;
}

/* --- Input --- */
.whatsappchat .popup-section .popup .popuptext .popup-box .response {
  background: #ffffff !important;
  padding: 10px 12px 12px !important;
  border-top: 0.5px solid rgba(0,0,0,0.05) !important;
}

.whatsappchat .popup-section .popup .popuptext .popup-box .response input {
  background: #F4F6F8 !important;
  border: none !important;
  border-radius: 24px !important;
  padding: 10px 50px 10px 16px !important;
  font-size: 13px !important;
  color: #1B3A5C !important;
  min-height: 44px !important;
  outline: none !important;
  width: 100% !important;
  border-top: none !important;
}

.whatsappchat .popup-section .popup .popuptext .popup-box .response .send_btn {
  right: 18px !important;
  bottom: 5px !important;
}

.whatsappchat .response .send_btn img {
  width: 34px !important;
  height: 100% !important;
  border-radius: 50% !important;
  background: border-box;
}

/* --- Botón flotante INICIAR CHAT --- */
.whatsappchat .btn-whatsapp {
  background: #1B3A5C !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 12px 22px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 16px rgba(27,58,92,0.2) !important;
  border: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.whatsappchat .btn-whatsapp:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(27,58,92,0.25) !important;
}

.whatsappchat .btn-whatsapp img {
  width: 18px !important;
  height: 18px !important;
}

/* --- Glow: desactivar --- */
.whatsappchat .btn-glow {
  animation: none !important;
}
.whatsappchat_127 .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    min-height: 58px;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, #4ca637 0%, #2f8f2f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 28px rgba(76, 166, 55, 0.35);
    border: 1px solid rgba(255,255,255,0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    position: relative;
    overflow: hidden;
    font-weight: bold !important;
}

.whatsappchat_127 .btn-whatsapp img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.whatsappchat_127 .btn-whatsapp:hover,
.whatsappchat_127 .btn-whatsapp:focus {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 34px rgba(76, 166, 55, 0.45);
    filter: brightness(1.03);
    color: #ffffff !important;
    font-weight: bold !important;
}

.whatsappchat_127 .btn-whatsapp:active {
    transform: translateY(0) scale(0.99);
}

.whatsappchat_127 .btn-whatsapp::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 20%,
        rgba(255,255,255,0.18) 45%,
        rgba(255,255,255,0) 70%
    );
    transform: translateX(-140%);
    animation: whatsappShine 3.2s infinite;
}

@keyframes whatsappShine {
    0% {
        transform: translateX(-140%);
    }
    45% {
        transform: translateX(140%);
    }
    100% {
        transform: translateX(140%);
    }
}

.whatsappchat_127 .btn-whatsapp.btn-glow {
    animation: whatsappPulse 2.2s infinite;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 10px 28px rgba(76, 166, 55, 0.35), 0 0 0 0 rgba(76, 166, 55, 0.28);
    }
    70% {
        box-shadow: 0 10px 28px rgba(76, 166, 55, 0.35), 0 0 0 14px rgba(76, 166, 55, 0);
    }
    100% {
        box-shadow: 0 10px 28px rgba(76, 166, 55, 0.35), 0 0 0 0 rgba(76, 166, 55, 0);
    }
}

.whatsappchat_127 .popup {
    position: relative;
}
@media (max-width: 768px) {
    .whatsappchat_127 .btn-whatsapp {
        padding: 14px 18px;
        min-height: 54px;
        font-size: 16px;
        border-radius: 16px;
    }

    .whatsappchat_127 .popup::before {
        font-size: 10px;
        padding: 5px 9px;
    }
}