/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-button {
    background-color: #001f3f; /* Azul marino del brochure */
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.chatbot-button:hover {
    background-color: #dc3545; /* Rojo del brochure */
}

.chatbot-window {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 350px;
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background-color: #001f3f;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
}

.user-message {
    background-color: #dc3545; /* Rojo */
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.bot-message {
    background-color: #e9ecef;
    color: black;
    align-self: flex-start;
    /* --- MODIFICACIÓN AGREGADA PARA RESPETAR LOS SALTOS DE LÍNEA DE JS --- */
    white-space: pre-wrap; 
    /* -------------------------------------------------------------------- */
}

.chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#chatbot-user-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-right: 10px;
}

#chatbot-send {
    background-color: #001f3f;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
}

#chatbot-send:hover {
    background-color: #dc3545;
}

.hidden {
    display: none !important;
}

/* Responsivo para móviles */
@media (max-width: 600px) {
    .chatbot-window {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    #chatbot-container {
        bottom: 10px;
        right: 10px;
    }

    .chatbot-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

