#chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(27, 11, 51, 0.92);
  color: white;
  border-radius: 50%;
  padding: 15px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 1000;
}

#chat-widget {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 320px;
  max-height: 440px;
  background: #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

#chat-widget.hidden {
  display: none;
}

#chat-header {
  background-color: rgba(27, 11, 51, 0.92);
  color: white;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-header span {
  font-size: 18px;
  cursor: pointer;
}

#chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.bot {
  background-color: #e1f3e8;
  align-self: flex-start;
}

.user {
  background-color: #dcf8c6;
  align-self: flex-end;
}

#chat-input-area {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #ccc;
  box-sizing: border-box;
}

#chat-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}

#chat-send-button {
  background-color: rgba(27, 11, 51, 0.92);
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  min-width: 80px;
  min-height: 40px;
  white-space: nowrap;
  flex-shrink: 0;
}


@media screen and (max-width: 768px) {
	 
  #chat-widget {
    width: 95%;
    right: 2.5%;
    left: auto;
    bottom: 100px; /* se separa del footer */
    border-radius: 12px;
    max-height: 85%;
  }

  #chat-header {
    background-color: rgba(27, 11, 51, 0.92);
  }

  #chat-send-button {
    background-color: #FE3D00;
	min-width: 80px;
  }

  #chat-button {
    background-color: #FE3D00;
  }

  .bot {
    background-color: #ffe3cc;
  }

  .user {
    background-color: #fff4e0;
  }
}
