/* --- Estilos Generales y Posicionamiento --- */
#chatbot-toggle-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #1e3b70, #007bff); /* Degradado azul */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.6);
    z-index: 1000;
    transition: transform 0.3s ease;
}

#chatbot-toggle-button:hover {
    transform: scale(1.05);
}

#chatbot-container {
    position: fixed;
    bottom: 100px; /* Sobre el botón de toggle */
    right: 30px;
    width: 350px;
    height: 500px;
    background-color: #1a1a2e; /* Fondo oscuro (similar al diseño) */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 123, 255, 0.3); /* Sombra neón */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
}

#chatbot-container.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* --- Encabezado --- */
.chatbot-header {
    background-color: #1a1a2e;
    color: #007bff;
    padding: 15px;
    border-bottom: 1px solid #007bff30;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    font-weight: bold;
    font-size: 1.1em;
    color: #4CAF50; /* Un toque de color para destacar el asistente */
}

#close-chatbot-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* --- Cuerpo del Chat --- */
.chatbot-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #121223;
}

/* --- Estilos de Mensajes --- */
.message {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    max-width: 80%;
    line-height: 1.4;
    font-size: 0.95em;
}

.bot-message {
    background-color: #007bff20; /* Fondo sutilmente azul */
    color: white;
    margin-right: auto;
    border-left: 3px solid #007bff;
}

.user-message {
    background-color: #33334f; /* Gris más oscuro para el usuario */
    color: white;
    margin-left: auto;
}

/* --- Opciones/Botones del Bot --- */
.option-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
}

.option-button:hover {
    background-color: #0056b3;
}

/* --- Pie de Página (Input) --- */
.chatbot-footer {
    display: flex;
    padding: 10px;
    background-color: #1a1a2e;
    border-top: 1px solid #007bff30;
}

#user-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 6px;
    background-color: #121223;
    color: white;
    margin-right: 10px;
    outline: none;
}

#send-btn {
    background-color: #4CAF50; /* Color distintivo para la acción */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#send-btn:hover {
    background-color: #388e3c;
}

#send-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}