/* ============================================================
   PERSONALIZACIÓN RÁPIDA
   Cambia este único valor para cambiar el color de todo el chat.
   ============================================================ */
:root {
  --quini-color: #159fd9;
}

#maria-burbuja {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--quini-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  overflow: hidden;
}

#maria-burbuja img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#maria-ventana {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  max-width: 90vw;
  height: 460px;
  max-height: 70vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

#maria-ventana.maria-abierta {
  display: flex;
}

#maria-header {
  background: var(--quini-color);
  color: #fff;
  padding: 12px 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#maria-cerrar {
  cursor: pointer;
  font-size: 20px;
}

#maria-mensajes {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f7f7f7;
}

.maria-msg {
  max-width: 80%;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.maria-msg-bot {
  background: #fff;
  border: 1px solid #ddd;
  align-self: flex-start;
}

.maria-msg-usuario {
  background: var(--quini-color);
  color: #fff;
  margin-left: auto;
}

.maria-pensando {
  opacity: 0.6;
  font-style: italic;
}

#maria-input-area {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 8px;
}

#maria-input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  font-size: 14px;
}

#maria-enviar {
  background: var(--quini-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 40px;
  margin-left: 6px;
  cursor: pointer;
  font-size: 16px;
}

#maria-enviar:disabled {
  opacity: 0.5;
  cursor: default;
}
