body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f0f0f0;
}

.boton-flotante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #880000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.chat-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  max-height: 400px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  z-index: 999;
}
 

.oculto {
  display: none;
}

.chat-header {
  background: white;
  color: rgb(0, 0, 0);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header img {
  height: 30px;
}

.chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #f9f9f9;
}

.mensaje {
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
}

.usuario {
  background: #dcf8c6;
  align-self: flex-end;
}

.bot {
  background: #eeeeee;
  align-self: flex-start;
}

.chat-input {
  display: flex;
  align-items: right;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border-top: 1px solid #ccc;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

.chat-input button {
  width: 40px;
  height: 40px;
  font-size: 20px;
  background-color: #cc9595;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: right;
  justify-content: right;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #757575;
}

.chat-input button:focus {
  outline: 2px solid #fff;
}


.mensaje {
  margin: 10px;
  padding: 10px;
  border-radius: 12px;
  max-width: 75%;
  position: relative;
  word-wrap: break-word;
}

.usuario {
  background-color: #d1f1c9;
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 0;
}

.bot {
  background-color: #f1f1f1;
  align-self: flex-start;
  margin-right: auto;
  border-bottom-left-radius: 0;
}

.hora {
  font-size: 10px;
  color: #666;
  text-align: right;
  margin-top: 4px;
}
.resumen-icono {
  font-size: 14px;
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.6;
}
@media (max-width: 480px) {
.chat-input {
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.chat-input input {
  width: 100%;
  font-size: 16px;
  padding: 12px;
  border-radius: 10px;
}

.chat-input .botones {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  width: 80%;
}

.chat-input .botones button {
  flex: 1;
  height: 46px;
  font-size: 22px;
  border-radius: 10px;
}
}
 