/* bot.css - Estilos para el chat flotante de Netrix */

/* Botón flotante */
.netrix-chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0f172a;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.netrix-chat-button:hover {
    background-color: #1e40af;
    transform: scale(1.05);
}

.netrix-chat-button i {
    font-size: 28px;
}

/* Ventana del chat */
.netrix-chat-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    font-family: 'Inter', sans-serif;
    border: 1px solid #eef2f6;
}

/* Oculto por defecto */
.netrix-chat-window.hidden {
    display: none;
}

/* Cabecera del chat */
.netrix-chat-header {
    background-color: #0f172a;
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.netrix-chat-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.netrix-chat-header .close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
}

.netrix-chat-header .close-chat:hover {
    opacity: 1;
}

/* Cuerpo del chat (mensajes) */
.netrix-chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mensaje del bot */
.netrix-bot-message {
    background-color: #eef2ff;
    color: #0f172a;
    padding: 10px 14px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 80%;
    align-self: flex-start;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Mensaje del usuario */
.netrix-user-message {
    background-color: #0f172a;
    color: white;
    padding: 10px 14px;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    max-width: 80%;
    align-self: flex-end;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Indicador de escritura */
.netrix-typing {
    background-color: #eef2ff;
    color: #5b6e8c;
    padding: 10px 14px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 80%;
    align-self: flex-start;
    font-size: 0.85rem;
    font-style: italic;
}

/* Pie del chat (input) */
.netrix-chat-footer {
    padding: 12px 16px;
    border-top: 1px solid #eef2f6;
    background: white;
    display: flex;
    gap: 8px;
}

.netrix-chat-footer input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}

.netrix-chat-footer input:focus {
    border-color: #1e40af;
}

.netrix-chat-footer button {
    background-color: #0f172a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
}

.netrix-chat-footer button:hover {
    background-color: #1e40af;
}

/* Mensaje de éxito */
.netrix-chat-success {
    background-color: #e6f7e6;
    color: #2b6e2f;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 480px) {
    .netrix-chat-window {
        width: calc(100% - 48px);
        right: 24px;
        left: 24px;
        bottom: 80px;
        height: 70vh;
    }
}
