/* Estilos del chatbot - Tema Azul (#2980b9) */
#chatbotContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Icono del chatbot */
.chatbot-icon {
    width: 60px;
    height: 60px;
    background-color: #2980b9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: white;
    font-size: 24px;
    position: relative;
}

.chatbot-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    background-color: #3498db;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    background-color: #e74c3c;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
}

/* Ventana del chat */
.chatbot-window {
    width: 380px;
    height: 500px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: absolute;
    bottom: 75px;
    right: 0;
}

.chatbot-window.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Encabezado del chat */
.chatbot-header {
    background-color: #2980b9;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-title h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chatbot-title i {
    font-size: 20px;
}

.chatbot-status {
    font-size: 11px;
    background-color: rgba(0, 255, 0, 0.5);
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

.chatbot-actions {
    display: flex;
    gap: 10px;
}

.chatbot-actions button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.chatbot-actions button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Área de mensajes */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Personalización de la barra de desplazamiento */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Estilos de los mensajes */
.chatbot-message {
    margin: 0;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    background-color: #2980b9;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 5px rgba(41, 128, 185, 0.3);
}

.bot-message {
    background-color: white;
    margin-right: auto;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

/* Área de entrada */
.chatbot-input-container {
    border-top: 1px solid #e0e0e0;
    background-color: white;
}

.chatbot-input {
    display: flex;
    padding: 15px;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

.chatbot-input input:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.2);
}

.chatbot-input button {
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chatbot-input button:hover {
    background-color: #3498db;
    transform: scale(1.05);
}

.chatbot-footer {
    padding: 5px 15px 10px;
    text-align: center;
    color: #7f8c8d;
    font-size: 11px;
}

/* Sugerencias */
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chatbot-suggestion {
    padding: 6px 12px;
    background-color: #eaf2f8;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    color: #2980b9;
    transition: all 0.2s;
    border: 1px solid #d4e6f1;
}

.chatbot-suggestion:hover {
    background-color: #d4e6f1;
    transform: translateY(-2px);
}

/* Efecto de notificación */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.new-message .notification-badge {
    display: block;
    animation: pulse 1.5s infinite;
}