#adaptogenia-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.chatbot-toggle {
    width: 140px;
    height: 140px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ya no hace falta escalar, el botón en sí es gigante y transparente */
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}

.chatbot-window {
    position: absolute;
    bottom: 140px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #E8D9C8;
}

.chatbot-window.active {
    display: flex;
}

.chatbot-header {
    background: #2A251F;
    color: white;
    padding: 4px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #FDFBF8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.message.system, .message.bot {
    align-self: flex-start;
    background: #E8D9C8;
    color: #2A251F;
    border-bottom-left-radius: 2px;
}

.message.user {
    align-self: flex-end;
    background: #B8956A;
    color: white;
    border-bottom-right-radius: 2px;
}

.message.loading {
    font-style: italic;
    opacity: 0.7;
}

.chatbot-input-area {
    padding: 15px;
    border-top: 1px solid #E8D9C8;
    display: flex;
    gap: 10px;
}

.chatbot-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #D4C4B0;
    border-radius: 8px;
    outline: none;
}

.chatbot-input-area button {
    background: #636D48; /* Success/Green */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
}
