/* ==========================================
   ILUSTRAMA LABS: UI COMPARTIDA (MENÚ + UPSELL)
   Ecosistema Laboratory / 2024
========================================== */

 :root {
            --ibg-card: #f5f4f0;
            --itext-main: #111110; --itext-muted: #666666;
            --iborder: #e5e4e0;
            --glass-bg: rgba(245, 244, 240, 0.7);
        }

       .dark {
            --ibg-card: #1a1a19;
            --itext-main: #f5f4f0; --itext-muted: #a0a0a0;
            --iborder: #333333;
            --glass-bg: rgba(17, 17, 16, 0.7);
        }


.labs-menu {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    font-family: 'Outfit', 'Inter', sans-serif;
    text-transform: uppercase;
}

/* 1. EL BOTÓN CIRCULAR (Menos invasivo) */
.labs-btn {
    background: var(--glass-bg); /* Hereda de la herramienta principal */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--iborder);
    color: var(--itext-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--iborder);
}

.labs-btn:hover {
    background: var(--itext-main);
    color: var(--ibg-card);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

/* 2. PANEL DE NAVEGACIÓN (Estilo Editorial) */
.labs-menu-content {
    position: absolute;
    bottom: 65px;
    left: 0;
    background: var(--ibg-card);
    border: 1px solid var(--iborder);
    border-radius: 12px;
    padding: 24px;
    width: 230px;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.labs-menu-content.active {
    display: block;
    animation: slideUpFade labs_revealContent 0.3s ease forwards;
}

/* Animación de apertura */
@keyframes labs_revealContent {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.labs-header {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--itext-muted);
    margin-bottom: 16px;
}

.labs-divider {
    height: 1px;
    background: var(--iborder);
    margin: 16px 0;
    width: 100%;
}

/* Enlaces de doble línea */
.labs-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    text-decoration: none;
    color: var(--itext-main);
    transition: all 0.2s;
}

.labs-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* El Punto Mágico */
.labs-dot {
    width: 8px;
    height: 8px;
    background: var(--iborder);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.labs-menu-item:hover {
    transform: translateX(4px);
}

.labs-menu-item:hover .labs-dot {
    background: var(--itext-main); /* Se oscurece */
    transform: scale(1.2);
}

.labs-name {
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.labs-context {
    font-size: 0.65rem;
    font-weight: 300;
    color: var(--itext-muted);
    letter-spacing: 1px;
}

/* FOOTER DEL MENÚ */
.labs-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--itext-main);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-top: 16px;
    transition: color 0.2s;
}

.labs-footer svg {
    transition: transform 0.2s;
}

.labs-footer:hover {
    color: var(--itext-muted);
}

.labs-footer:hover svg {
    transform: translate(3px, -3px);
}

/* ==========================================
   3. UPSELL FLOTANTE (AVISO INTELIGENTE)
========================================== */
.upsell-toast {
    position: fixed;
    top: 100px;
    right: -400px; /* Escondido a la derecha */
    background: var(--ibg-card);
    border: 1px solid var(--iborder);
    padding: 24px;
    border-radius: 16px;
    width: 320px;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    font-family: 'Outfit', 'Inter', sans-serif;
}

.upsell-toast.active {
    right: 20px;
} /* Aparece en pantalla */

.upsell-toast p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--itext-main);
    line-height: 1.5;
    font-weight: 300;
}

.upsell-btn {
    background: var(--itext-main);
    color: var(--ibg-card);
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.upsell-btn:hover {
    transform: translateY(-2px);
}

.upsell-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--itext-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.upsell-close:hover {
    color: var(--itext-main);
}