/* Contenedor del botón flotante */
.cpfwa-floating-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

/* Botón flotante */
.cpfwa-button {
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.cpfwa-button:hover {
  transform: scale(1.08);
}

/* Animación Suspiro */
@keyframes cpfwa-breathing {
  0% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.08); 
  }
  100% { 
    transform: scale(1); 
  }
}

.cpfwa-breath {
  animation: cpfwa-breathing 3s infinite ease-in-out;
  will-change: transform;
}

/* Overlay del Modal */
.cpfwa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cpfwa-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Modal */
.cpfwa-modal {
  background: #ffffff;
  width: 95%;
  max-width: 500px;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(40px);
  transition: transform 0.3s ease;
}

.cpfwa-modal-overlay.active .cpfwa-modal {
  transform: translateY(0);
}

/* Header del Modal */
.cpfwa-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.cpfwa-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.cpfwa-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.cpfwa-close:hover {
  color: #333;
}

/* Cuerpo del Modal */
.cpfwa-modal-body {
  padding: 0;
}

/* Campos del Formulario */
.cpfwa-field {
  margin-bottom: 16px;
}

.cpfwa-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.cpfwa-field input,
.cpfwa-field select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.cpfwa-field input:focus,
.cpfwa-field select:focus {
  outline: none;
  border-color: #25D366;
}

/* Botón de Envío */
.cpfwa-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  background: #25D366;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cpfwa-submit:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.cpfwa-submit i {
  font-size: 18px;
}

/* Mensaje de Seguridad */
.cpfwa-security {
  font-size: 12px;
  margin-top: 15px;
  text-align: center;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cpfwa-security i {
  color: #25D366;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
  .cpfwa-modal {
    width: 90%;
    padding: 16px;
  }

  .cpfwa-modal-header h3 {
    font-size: 18px;
  }

  .cpfwa-field input,
  .cpfwa-field select {
    padding: 10px;
  }

  .cpfwa-submit {
    padding: 12px;
    font-size: 15px;
  }
}




