#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: 560px;max-width: 450px;max-height: calc(100vh - 40px);max-height: calc(100dvh - 40px);overflow-y: auto;-webkit-overflow-scrolling: touch;overscroll-behavior: contain;border-radius: 10px;-webkit-box-shadow: 0 10px 20px rgb(0 0 0 / 20%);box-shadow: 0 10px 20px rgb(0 0 0 / 20%);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%;min-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;color: #fff;}
.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: auto;font-size: 14px;min-height: 64px;height: 64px;line-height: 1.35;border-radius: 16px;}
.modal-whatsapp input:hover {box-shadow: none;}
#waSubmitBtn{background-color: transparent;border: none;cursor: pointer;margin: 0;padding: 0;}
#waSubmitBtn img{width: 30px;}
.form-row-one{display: flex;flex-wrap: wrap;}
.form-row-two{display: flex;column-gap: 10px;}
.modal-whatsapp .error{color: red;font-size: 12px;margin-top: -5px;margin-bottom: 10px;padding: 0 2px;display: none;}
#waErrormessage {color: #fff;display: none;font-size: 12px;border: 1px solid #ffff99;margin-bottom: 20px;padding: 10px;text-align: center;}

/* --- AJUSTES Y POSICIONAMIENTO DEL CONTENEDOR DEL BOTÓN FLOTANTE --- */
.wa-float-container {
    position: fixed;
    right: 20px;
    bottom: 5%; /* Ajusta esta separación del suelo de tu web si lo requieres */
    z-index: 100000; /* por encima del formulario para poder cerrarlo */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* --- 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%; } }
.modal-whatsapp input, .modal-whatsapp textarea { font-family: inherit; }
/* Móvil: dos campos por fila (solo se apilan en pantallas muy angostas), 16px evita el zoom de iOS
   y se oculta el botón flotante mientras el formulario está abierto para que no tape los campos */
@media only screen and (max-width: 768px) {
  .modal-whatsapp input[type="text"], .modal-whatsapp input[type="tel"], .modal-whatsapp input[type="email"], .modal-whatsapp textarea { font-size: 16px; }
  body.wa-modal-open .wa-float-container { display: none; }
  .form-submit { flex: 0 0 44px; }
  .form-row-two { column-gap: 6px; }
  .modal-whatsapp input::placeholder, .modal-whatsapp textarea::placeholder { font-size: 14px; }
}
@media only screen and (max-width: 340px) { .form-row-two { flex-direction: column; } }