/* ISADE - oscurecimiento al invitar al contacto por WhatsApp */
.isade-whatsapp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  background: rgba(0, 0, 0, .90);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, visibility 0s linear .55s;
}
.isade-whatsapp-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .55s ease;
}
.isade-whatsapp-overlay-close {
  position: absolute;
  top: 20px;
  right: 24px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 28px;
  padding: 10px 18px;
  background: #fff;
  color: #111;
  font: 800 13px/1.2 Montserrat, Arial, sans-serif;
  cursor: pointer;
  z-index: 2;
}
.isade-whatsapp-overlay-close span {
  font-size: 24px;
  line-height: .5;
  vertical-align: -2px;
  margin-right: 5px;
}
.isade-whatsapp-overlay-message {
  position: absolute;
  width: min(340px, calc(100% - 36px));
  left: 22px;
  bottom: 145px;
  color: white;
  text-shadow: 0 1px 7px rgba(0, 0, 0, .5);
  pointer-events: none;
}
.isade-whatsapp-overlay-message strong,
.isade-whatsapp-overlay-message span {
  display: block;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
}
.isade-whatsapp-overlay-message strong { font-size: 19px; font-weight: 900; margin-bottom: 5px; }
.isade-whatsapp-overlay-message span { font-size: 13px; font-weight: 600; line-height: 1.4; }
.isade-whatsapp-overlay-fallback {
  display: none;
  position: absolute;
  bottom: 26px;
  left: 24px;
  max-width: calc(100% - 48px);
  background: #f8c400;
  color: #111 !important;
  font: 800 12px/1.4 Montserrat, Arial, sans-serif;
  text-decoration: none !important;
  border-radius: 28px;
  padding: 13px 18px;
}
.isade-whatsapp-overlay.is-fallback .isade-whatsapp-overlay-fallback { display: inline-flex; }
/* Eleva el widget de Tochat/Chatwith por delante de la capa negra.
   Se conservan el lugar y las opciones originales configuradas en el proveedor. */
body.isade-whatsapp-focus .chatwith,
body.isade-whatsapp-focus .chatwith-big-person,
body.isade-whatsapp-focus [id^="whatapp-people-widget-"],
body.isade-whatsapp-focus [id^="chatwith-widget"],
body.isade-whatsapp-focus .chatwith-widget,
body.isade-whatsapp-focus iframe[src*="widget.tochat.be"] {
  z-index: 2147483000 !important;
}
@media (max-width: 767px) {
  .isade-whatsapp-overlay-close { top: 14px; right: 14px; }
  .isade-whatsapp-overlay-message { bottom: 118px; left: 17px; }
  .isade-whatsapp-overlay-message strong { font-size: 16px; }
  .isade-whatsapp-overlay-fallback { left: 17px; bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .isade-whatsapp-overlay, .isade-whatsapp-overlay.is-active { transition: none; }
}
/* En los dos formularios: estado visible, accesible y sin clics repetidos. */
.isade-protected-form button[type="submit"].isade-form-sending {
  cursor: wait !important;
  opacity: .75;
  pointer-events: none;
}
.isade-form-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-right: 8px;
  vertical-align: middle;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: isade-form-spin .65s linear infinite;
}
@keyframes isade-form-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .isade-form-spinner { animation: none; } }
