#waContactBtn{background-color: #25d366;color: #ffffff;padding: 0 25px;height: 45px;min-height: 45px;line-height: 45px;border-radius: 25px;display: inline-block;font-weight: 700;border: none;cursor: pointer;display: flex;align-items: center;gap: 8px;margin: 0 auto;}
#waContactBtn:hover{background-color: #128c7e;}

/* --- MODAL CENTRAL DEL FORMULARIO DE CAPTURA --- */
.modal-whatsapp{display: none;position: fixed;z-index: 99999;left: 0;top: 0;width: 100%;height: 100%;overflow: auto;background-color: rgb(77 92 116 / 95%);-webkit-animation-name: fadeIn;-webkit-animation-duration: 0.4s;}
.modal-whatsapp-content{position: fixed;background-color: #E5DDD5;width: 100%;height: 500px;max-width: 450px;max-height: 450px;border-radius: 10px;-webkit-box-shadow: 0 10px 20px rgb(0 0 0 / 20%);box-shadow: 0 10px 20px rgb(0 0 0 / 20%);overflow: hidden;padding: 0px 0px 0px 0px;transform: translate(-50%, -50%);left: 50%;top: 50%;animation-name: slideIn;animation-duration: 0.4s;}
.modal-whatsapp-content .modal-whatsapp-wrap{width: 100%;height: 100%;display: flex;flex-direction: column;justify-content: space-between;position: relative;}
.modal-whatsapp-content .modal-whatsapp-wrap::after{content: "";width: 100%;height: 100%;position: absolute;background-image: url('./img/ws-fondo.webp');background-size: 450px;background-color: #E5DDD5;z-index: 0;opacity: 0.1;}
.modal-whatsapp-header{padding: 10px;background-color: #009688;display: flex;z-index: 1;color: #fff;align-items: center;justify-content: space-between;}
.company-info{display: flex;align-items: center;}
.company-info img{width: 45px;height: 45px;border: solid 1px #f1f1f1;padding: 0px;border-radius: 50%;margin-right: 10px;}
.info-text strong{font-weight: 600;display: block;margin-bottom: 2px;}
.info-text span{font-size: 14px;display: block;}
.close-btn{cursor: pointer;font-size: 35px;font-weight: 700;}
.modal-whatsapp-body{background-color: #EFEFEF;padding: 10px 5px 5px 5px;display: flex;justify-content: flex-start;align-items: center;z-index: 1;}
#whatsappContactForm{display: flex;width: 100%;margin: 0;}
.form-fields{flex: 1 1 85%;}
.form-submit{flex: 1 1 15%;display: flex;align-items: center;justify-content: center;}
.modal-whatsapp input[type="text"],.modal-whatsapp input[type="tel"],.modal-whatsapp input[type="email"],.modal-whatsapp textarea{width: 100%;padding: 10px;margin-bottom: 8px;border-radius: 20px;background-color: #fff;border: 1px solid #f1f1f1;box-sizing: border-box;height: 40px;font-size: 14px;}
.modal-whatsapp textarea{resize: none;overflow-y: hidden;font-size: 14px;min-height: 40px;}
.modal-whatsapp input:hover {box-shadow: none;}
#submitBtn{background-color: transparent;border: none;cursor: pointer;margin: 0;padding: 0;}
#submitBtn img{width: 30px;}
.form-row-one{display: flex;flex-wrap: wrap;}
.form-row-two{display: flex;column-gap: 10px;}
.error{color: red;font-size: 12px;margin-top: -5px;margin-bottom: 10px;padding: 0 2px;display: none;}
#errormessage {color: #fff;display: none;font-size: 12px;border: 1px solid #ffff99;margin-bottom: 20px;padding: 10px;text-align: center;}

/* --- AJUSTES Y POSICIONAMIENTO DEL CONTENEDOR MULTIAGENTE FLOTANTE --- */
.wa-float-container {
    position: fixed;
    right: 20px;
    bottom: 5%; /* Ajusta esta separación del suelo de tu web si lo requieres */
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* El menú flotante pequeño de agentes (Aparece ARRIBA de la burbuja sin pisarla) */
.wa-agents-popup {
    display: none;
    position: absolute;
    bottom: 85px; /* Evita que se encime sobre los 70px de la burbuja redonda */
    right: 0;
    width: 320px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.wa-popup-header {
    background-color: #2db742;
    padding: 15px;
    color: #fff;
    display: flex;
    column-gap: 15px;
    align-items: center;
}
.wa-popup-header-text {
    line-height: 1.2;
}
.wa-popup-header strong { display: block; font-size: 16px; }
.wa-popup-header span { font-size: 12px; color: #ffffff; }

.wa-popup-body {
    padding: 12px;
    background-color: #f4f6f8;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Ítems internos de los asesores */
.agent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: 1px solid #eef1f4;
}
.agent-item:hover {
    background-color: #fafbfc;
    transform: translateY(-1px);
}
.agent-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.agent-profile img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.agent-details span {
    display: block;
    font-size: 15px;
    color: #333;
}
.agent-details strong {
    font-size: 14px;
    color: #666;
}
.agent-wa-icon {
    display: flex;
    align-items: center;
}

/* --- ESTILO DEL BOTÓN REDONDO PRINCIPAL --- */
.floating-btn {
  cursor: pointer;
  background-color: #25d366;
  color: #ffffff;
  max-width: 80px;
  padding: 15px;
  text-align: center;
  border-radius: 99px;
  border: 0;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  outline: none; /* Elimina contorno punteado */
  
  /* Animación de pulso continuo aplicada sólo a la sombra exterior */
  animation: wa-pulse 2s infinite;
}

.floating-btn:focus {
    outline: none;
}

.floating-btn span {
  font-size: 10px;
  line-height: 20px;
  text-transform: uppercase;
  font-weight: bold;
}

.floating-btn:hover {
  background-color: #128c7e;
  animation-play-state: paused; /* Pausa la animación al pasar el cursor */
}

/* Animación corregida: Afecta únicamente al anillo de sombra, el círculo e icono no cambian de tamaño */
@keyframes wa-pulse {
  0% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) { .modal-whatsapp-content { width: 90%; } }
@media only screen and (max-width: 480px) { .form-row-two { flex-direction: column; } }