/* ================================================ WhatsApp */
:root { --aj-blue: #029CFF; }

.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  font-family: 'Outfit', system-ui, sans-serif;
}

/* Mensaje emergente */
.message-container {
  background-color: #fff;
  padding: 4px 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.message-text {
  font-size: 14px;
  color: #333;
}

/* Botón de cerrar */
.close-btn {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23029CFF" class="bi bi-x-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293z"/></svg>');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 22px;
  width: 22px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  margin-left: -5px;
  transform: translateY(-10px);
}

/* icon  WhatsApp */
.whats {
  height: 45px;
  width: auto;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}
.whats:hover {
  transform: scale(1.05);
}

/* formulario */
.whats-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(252, 252, 252, 0.555);
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

.whats-modal.open {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  overflow: hidden;
}

.modal-header {
  background: var(--aj-blue);
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 16px;
}

.modal-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.label {
  font-size: 13px;
  color:#029CFF;
  font-weight: 600;
}

.input, .select, .textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #029CFF;
  font-size: 14px;
  outline: none;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--aj-blue);
  box-shadow: 0 0 0 2px rgba(2, 156, 255, 0.15);
}

.textarea {
  resize: vertical;
  min-height: 90px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 16px 16px;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn.cancel {
  background: #ffffff;
  color: #029CFF;
  border: 1px solid #029CFF;
}
.btn.cancel:hover {
  transform: scale(1.05);
}

.btn.primary {
  background: var(--aj-blue);
  color: #fff;
}

.btn.primary:hover {
  transform: scale(1.08);
  background: var(--aj-blue); 
}
.btn.primary {
  transition: transform 0.2s ease;
}

/* Errores */
.err {
  display: none;
  font-size: 12px;
  color: #c62828;
}
.err.show {
  display: block;
}

/* Responsivo */
@media only screen and (max-width: 991px) {
  .whatsapp-container {
    right: 10px;
    bottom: 15px;
    flex-direction: row;
  }

  .message-container {
    max-width: 60vw;
    font-size: 14px;
  }

  .whats {
    height: 40px;
  }
}

@media only screen and (max-width: 600px) {
  .whats {
    height: 35px;
  }
}
