/* Estilos generales del chatbot */
.chatbot-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Estado minimizado */
.chatbot-minimized {
    cursor: pointer;
    background: #ffffff;
    border-radius: 50px;
    padding: 10px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.chatbot-minimized:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.chatbot-minimized-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-minimized-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.chatbot-minimized-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Estado expandido */
.chatbot-container {
    display: none;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.chatbot-container.active {
    display: flex;
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.chatbot-header p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #666;
}

.chatbot-minimize-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
}

.chatbot-minimize-btn:hover {
    background: #e9ecef;
    color: #333;
}

.chatbot-conversation {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-welcome-message {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #555;
    border-left: 3px solid #4e73df;
}

.chatbot-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chatbot-message-user {
    align-self: flex-end;
    background: #4e73df;
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-message-bot {
    align-self: flex-start;
    background: #f1f3f5;
    color: #333;
    border-bottom-left-radius: 4px;
}

.chatbot-input-area {
    padding: 12px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.chatbot-input {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: white;
    border-radius: 20px;
    padding: 8px 12px;
    border: 1px solid #ddd;
}

.chatbot-input textarea {
    flex: 1;
    border: none;
    resize: none;
    outline: none;
    font-size: 14px;
    max-height: 120px;
    padding: 5px 0;
    font-family: inherit;
}

.chatbot-input textarea::placeholder {
    color: #999;
}

.chatbot-send {
    background: #4e73df;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chatbot-send:hover {
    background: #3a5bbf;
}

.chatbot-send:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.chatbot-footer {
    text-align: center;
    margin-top: 8px;
}

.chatbot-footer small {
    font-size: 10px;
    color: #999;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-message {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 480px) {
    .chatbot-wrapper {
        bottom: 10px;
        right: 10px;
    }
    
    .chatbot-container {
        width: calc(100vw - 20px);
        height: 70vh;
    }
}

.chatbot-links {
    margin-top: 10px;
    font-size: 12px;
}

.chatbot-links a {
    display: block;
    color: #4e73df;
    text-decoration: underline;
    word-break: break-word;
}





























/* Estilos base del chatbot */
.chatbot-container {
    display: none;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 80vh;
    background-color: var(--chatbot-bg);
    color: var(--chatbot-text);
    border-radius: var(--chatbot-radius);
    box-shadow: var(--chatbot-shadow);
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: var(--chatbot-font);
}

.chatbot-header {
    padding: 15px;
    background-color: var(--chatbot-header-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    margin-bottom: 8px;
}

.chatbot-message-user {
    align-self: flex-end;
    background-color: var(--chatbot-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-message-bot {
    align-self: flex-start;
    background-color: var(--chatbot-bot-msg);
    color: var(--chatbot-text);
    border-bottom-left-radius: 4px;
}

.chatbot-input-area {
    padding: 12px;
    background-color: var(--chatbot-header-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-input {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background-color: var(--chatbot-input-bg);
    border-radius: 20px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.chatbot-send {
    background-color: var(--chatbot-primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chatbot-send:hover {
    background-color: var(--chatbot-primary-hover);
}

/* Estado minimizado */
.chatbot-minimized {
    cursor: pointer;
    background: var(--chatbot-bg);
    border-radius: 50px;
    padding: 10px 15px;
    box-shadow: var(--chatbot-shadow);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.chatbot-minimized:hover {
    background-color: var(--chatbot-primary-hover);
    transform: translateY(-2px);
}