/* General */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
/* Estilo para ajustar imágenes */
.object-fit-cover {
  object-fit: cover;
}
.avatar-wrapper {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 50%;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

#speakingText {
  font-size: 14px;
  font-style: italic;
  color: gray;
}
/* Contenedor principal */
.chat-container {
    display: flex;
    flex-wrap: wrap; /* Permite que las secciones se acomoden si no hay espacio */
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 100vh;
    background: #f9f9f9;
}

/* Sección izquierda (Avatar) */
.left-section {
    flex: 1; /* Toma el espacio necesario */
    min-width: 300px; /* Ancho mínimo para que no se deforme */
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    background: #eef3f8;
    border-right: 1px solid #ddd;
    box-sizing: border-box;
}

.avatar-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.bot-message {
    background: #e0f7fa;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    width: 90%;
    font-size: 16px;
}

.chat-input {
    display: flex;
    gap: 10px;
    width: 90%;
    margin-top: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.chat-input button {
    background-color: #0288d1;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #0277bd;
}

/* Sección derecha (Producto e historial) */
.right-section {
    flex: 2; /* Toma el espacio restante */
    min-width: 300px; /* Ancho mínimo para pantallas pequeñas */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
}

.product-image {
    width: 150px;
    margin-bottom: 20px;
}

.product-info {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.conversation-history {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
}

#chatMessages {
    font-size: 14px;
    line-height: 1.6;
}

/* Diseño responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .chat-container {
        flex-direction: column; /* Apila las secciones una debajo de la otra */
        height: auto;
    }

    .left-section, .right-section {
        border-right: none; /* Elimina la división en pantallas pequeñas */
        border-bottom: 1px solid #ddd;
    }
}
