#chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: transparent;
  color: transparent;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
}
#chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-height: 400px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}
.chat-header {
  background-color: #08531C;
  color: white;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}
.chat-body {
  padding: 10px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.chat-message {
  background: #f1f1f1;
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 90%;
}
.chat-message.bot {
  background: #fffce1;
  align-self: flex-start;
}
.chat-message.user {
  background: #d4f8d4;
  align-self: flex-end;
  text-align: right;
}
.chat-options {
  max-height:200px;
  border-top: 1px solid #ccc;
  padding: 8px;
  background: #f9f9f9;
}
.chat-options button {
  margin: 5px 0;
  width: 100%;
  padding: 8px;
  border: none;
  background: #08531C;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}
.chat-options button:hover {
  background: #08531C;
}
#chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-height: 400px; /* antes: 450px */
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

.chat-body {
  padding: 10px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.chat-options {
  max-height: 220px; /* puede ser mayor si deseas */
  overflow-y: auto; /* ← ¡esto permite hacer scroll vertical! */
  border-top: 1px solid #ccc;
  padding: 8px;
  background: #f9f9f9;
}

#floating-menu {
  position: fixed;
  bottom: 90px;
  right: 30px;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 998;
}

.action-button {
  background-color: transparent;
  color: transparent;
  border: none;
  padding: 0px 0px;
  border-radius: 0px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.action-button:hover {
  background-color: transparent;
}

.typing-indicator {
  align-self: flex-start;
  background: #e1eaff;
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background: #08531C;
  border-radius: 50%;
  animation: bounce 1s infinite both;
}
.typing-indicator span:nth-child(2){ animation-delay: .2s; }
.typing-indicator span:nth-child(3){ animation-delay: .4s; }

@keyframes bounce{
0%,80%,100%{ transform: translateY(0); opacity: 1; }
40%{ transform: translateY(-6px); opacity: .3; }
}

img.icono-red:hover{
  transform: scale(1.12); /* Aumenta el tamaño en un 20% */
}