#chatbot-button {
    position: fixed; bottom: 30px; right: 30px;
    background: linear-gradient(135deg, #0073aa 0%, #004970 100%);
    padding: 16px; border-radius: 50%;
    cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    z-index: 99999;
}
#chatbot-button:hover {
    transform: scale(1.1);
}
#chatbot-popup {
    position: fixed; bottom: 80px; right: 30px;
    width: 360px; height: 480px;
    background: white; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    display: flex; flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 99999;
}
#chatbot-header {
    background: linear-gradient(135deg, #0073aa 0%, #004970 100%);
    padding: 16px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: #fff; font-weight: 700;
    display: flex; justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#chatbot-header button {
    background: transparent; border: none;
    color: #fff; font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}
#chatbot-header button:hover {
    color: #ff8080;
}
#chatbot-messages {
    padding: 16px;
    flex-grow: 1;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
    background: #f9f9f9;
}
#chatbot-messages p {
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
}
.bot-message {
    background: #e3f2fd;
    color: #0d47a1;
    align-self: flex-start;
}
.user-message {
    background: #0073aa;
    color: white;
    align-self: flex-end;
}
.welcome {
    font-style: italic;
    font-size: 13px;
    color: #707070;
}
#chatbot-form {
    display: flex;
    padding: 12px 16px;
    border-top: 1px solid #ddd;
    background: #fff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
#chatbot-input {
    flex-grow: 1;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s ease;
}
#chatbot-input:focus {
    border-color: #0073aa;
}
#chatbot-send, #chatbot-clear {
    background: #0073aa;
    border: none;
    color: white;
    font-weight: 700;
    margin-left: 10px;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#chatbot-send:disabled {
    background-color: #aacbdc;
    cursor: not-allowed;
}
#chatbot-send:hover:not(:disabled), #chatbot-clear:hover {
    background-color: #004970;
}

.chatbot-post-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chatbot-post-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    background: #fff;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.chatbot-post-card:hover {
    box-shadow: 4px 4px 14px rgba(0,0,0,0.2);
}
.chatbot-post-card img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
    display: block;
    object-fit: cover;
}
.chatbot-post-card h3 {
    font-size: 14px; /* tamaño más pequeño */
    color: #0073aa;
    margin: 8px 15px;
    line-height: 1.3;
    font-weight: 600;
}
.chatbot-post-url {
    display: none;
}
.chatbot-view-all {
    font-size: 14px;
    display: block;
    margin: 20px auto 10px;
    text-align: center;
    font-weight: bold;
    color: #0073aa;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
    max-width: 280px;
}
.chatbot-view-all:hover {
    color: #004970;
}
