.custom-ai-search-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.ai-search-toggle {
    background: #1F255C;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 16px;
    transition: background 0.3s ease;
}

.ai-search-toggle:hover {
    background: #E66518;
}

.ai-search-logo {
    width: 30px;
    height: 30px;
    margin-left: 10px;
}

/* Media query para mÃ³viles (pantallas de 768px o menos) */
@media (max-width: 768px) {
    .ai-search-toggle {
        padding: 0;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        background: #1F255C; /* Asegura el fondo azul */
    }

    .ai-search-toggle span {
        display: none; /* Oculta el texto en mÃ³viles */
    }

    .ai-search-logo {
        margin-left: 0; /* Elimina el margen en mÃ³viles */
    }

    .ai-search-toggle:hover,
    .ai-search-toggle:active {
        background: #1F255C; /* Mantiene el fondo azul en hover y active */
    }
}

.ai-search-form-container {
    display: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 350px;
    max-height: 500px;
    overflow-y: auto;
    position: absolute;
    bottom: 60px;
    left: 0;
}

.ai-search-header {
    background: #1F255C;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-search-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.ai-chat-container {
    padding: 10px;
}

.ai-chat-messages {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.ai-message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
}

.ai-message-user {
    background: #f0f5ff;
    text-align: right;
}

.ai-message-bot {
    background: #e0e0e0;
    text-align: left;
}

.ai-message-bot a {
    color: #E66518;
    text-decoration: underline;
}

.ai-message-bot ul {
    list-style: disc;
    margin: 10px 0;
    padding-left: 20px;
}

.ai-message-bot li {
    margin-bottom: 8px;
}

.ai-search-form {
    display: flex;
    flex-direction: column;
}

.ai-search-field textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
}

.ai-search-submit {
    background: #1F255C;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.ai-search-submit:hover {
    background: #E66518;
}
/* Ocultar completamente el widget del Buscador IA en m¨®viles */
@media (max-width: 768px) {
    #custom-ai-search-widget {
        display: none !important;
    }
}