/* chatbot_styles.css */
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

#chatbot-toggle:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid #ddd;
}

#chatbot-header {
    background: #007bff;
    color: white;
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-header h3 {
    margin: 0;
    font-size: 18px;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
}

.message.usuario {
    align-self: flex-end;
    background: #007bff;
    color: white;
}

.message.bot {
    align-self: flex-start;
    background: #f1f1f1;
    color: #333;
}

/* Estilos para los botones de preguntas frecuentes */
#faq-buttons-container {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.faq-title {
    font-weight: bold;
    color: #555;
    font-size: 13px;
}

.toggle-faq-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #007bff;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-faq-btn:hover {
    background-color: #e6f0ff;
}

.toggle-faq-btn.active {
    background-color: #007bff;
    color: white;
}

#faq-buttons {
    display: none; /* Oculto por defecto */
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.faq-btn {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 12px;
    padding: 6px 8px;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 35px;
}

.faq-btn:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

#chatbot-input {
    padding: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

#chatbot-message {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

#chatbot-send {
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

#chatbot-send:hover {
    background: #0056b3;
}

/* Scrollbar personalizado */
#chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}