/* Botón flotante WhatsApp */
#whatsapp-sysconi {
  position: fixed;
  bottom: 90px;
  right: 10px;
  background: #25D366;
  border-radius: 50%;
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.5);
  cursor: pointer;
  z-index: 9999;
  border: none;
}
#whatsapp-sysconi img {
  width: 85px;
  height: 85px;
}

/* Modal fondo */
#whatsapp-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.45);
  justify-content: center; align-items: center;
}
#whatsapp-modal.active {
  display: flex;
}

/* Caja del modal */
#whatsapp-modal .wa-modal-content {
  background: #fff;
  border-radius: 15px;
  padding: 35px 24px 18px 24px;
  width: 92vw;
  max-width: 360px;
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.25);
  position: relative;
  animation: fadeIn .3s ease-in;
}
@keyframes fadeIn {
  from { transform: translateY(50px); opacity:0; }
  to   { transform: translateY(0px); opacity:1; }
}

/* Botón cierre */
#whatsapp-modal .wa-close {
  position: absolute;
  top: 13px;
  right: 16px;
  font-size: 1.35rem;
  color: #25d366;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.wa-modal-content h3 {
  color: #25d366;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}
.wa-modal-content p {
  font-size: 0.98rem;
  color: #222;
  margin-bottom: 17px;
  text-align: center;
}

#whatsapp-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#whatsapp-form label {
  font-weight: 600;
  margin-bottom: 1px;
  font-size: 0.96rem;
  
}
#whatsapp-form input, #whatsapp-form textarea {
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 1rem;
}
#whatsapp-form textarea {
  resize: vertical;
  min-height: 46px;
}

#whatsapp-form .wa-enviar {
  background-color: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 0;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: background .2s;
}
#whatsapp-form .wa-enviar:hover {
  background-color: #128c7e;
}

#whatsapp-modal .wa-modal-success, #whatsapp-modal .wa-modal-error {
  text-align: center;
  margin-top: 10px;
  color: #25d366;
  font-weight: 700;
}
#whatsapp-modal .wa-modal-error {
  color: #c0392b;
}

/* Responsive */
@media (max-width: 600px) {
  #whatsapp-modal .wa-modal-content { width: 97vw; min-width: 0; padding: 20px 5vw 10px 5vw; }
  #whatsapp-sysconi { right: 13px; bottom: 95px; width: 75px; height:75px; }
  #whatsapp-sysconi img { width: 85px; height: 85px; }
}
