/* /Shared/LunaChatWindow.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════
   LUNA CHAT WINDOW – Estilos del panel flotante
   Posicionado como overlay fixed en la esquina inferior derecha
   ══════════════════════════════════════════════════════════ */

/* ── VENTANA MAXIMIZADA ─────────────────────────────────── */
.luna-ventana[b-lrdmjccl96] {
    position: fixed;
    bottom: 15px;
    right: 24px;
    width: 540px;
    height: 95% !important;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: box-shadow 0.2s ease;
}

.luna-ventana-entrada[b-lrdmjccl96] {
    animation: lunaEntrada-b-lrdmjccl96 0.35s ease forwards;
}

@keyframes lunaEntrada-b-lrdmjccl96 {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── HEADER ──────────────────────────────────────────────── */
.luna-ventana-header[b-lrdmjccl96] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, #6a0dad 0%, #c2185b 100%);
    color: #ffffff;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}

.luna-ventana-titulo[b-lrdmjccl96] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.luna-avatar-sm[b-lrdmjccl96] {
    font-size: 1.5rem;
    line-height: 1;
}

.luna-nombre[b-lrdmjccl96] {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.luna-subtitulo[b-lrdmjccl96] {
    display: block;
    font-size: 0.68rem;
    opacity: 0.82;
    line-height: 1.2;
}

.luna-ventana-controles[b-lrdmjccl96] {
    display: flex;
    align-items: center;
    gap: 2px;
}

.luna-ctrl-btn[b-lrdmjccl96] {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px 7px;
    border-radius: 7px;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luna-ctrl-btn:hover[b-lrdmjccl96] {
    background: rgba(255, 255, 255, 0.22);
}

.luna-ctrl-close:hover[b-lrdmjccl96] {
    background: rgba(220, 38, 38, 0.75);
}

/* ── BODY ────────────────────────────────────────────────── */
.luna-ventana-body[b-lrdmjccl96] {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

/* ── TYPING INDICATOR (en header ventana maximizada) ─────── */
.luna-typing-indicator[b-lrdmjccl96] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 6px;
}

.luna-typing-indicator span[b-lrdmjccl96] {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: lunaTypingDot-b-lrdmjccl96 1.2s infinite ease-in-out;
}

.luna-typing-indicator span:nth-child(2)[b-lrdmjccl96] {
    animation-delay: 0.2s;
}

.luna-typing-indicator span:nth-child(3)[b-lrdmjccl96] {
    animation-delay: 0.4s;
}

@keyframes lunaTypingDot-b-lrdmjccl96 {
    0%, 80%, 100% {
        transform: scale(0.65);
        opacity: 0.45;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ══════════════════════════════════════════════════════════
   BARRA MINIMIZADA – indicador flotante esquina inferior derecha
   ══════════════════════════════════════════════════════════ */
.luna-bar-minimizada[b-lrdmjccl96] {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6a0dad 0%, #c2185b 100%);
    color: #ffffff;
    padding: 9px 16px;
    border-radius: 28px;
    box-shadow: 0 4px 18px rgba(106, 13, 173, 0.4), 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    max-width: 280px;
}

.luna-bar-minimizada:hover[b-lrdmjccl96] {
    box-shadow: 0 6px 24px rgba(106, 13, 173, 0.55), 0 3px 10px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.luna-bar-avatar[b-lrdmjccl96] {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.luna-bar-titulo[b-lrdmjccl96] {
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.luna-bar-typing[b-lrdmjccl96] {
    letter-spacing: 3px;
    font-size: 0.65rem;
    opacity: 0.85;
    animation: lunaTypingDot-b-lrdmjccl96 1.2s infinite ease-in-out;
    flex-shrink: 0;
}

.luna-bar-btn[b-lrdmjccl96] {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luna-bar-btn:hover[b-lrdmjccl96] {
    background: rgba(255, 255, 255, 0.22);
}

.luna-bar-btn-close:hover[b-lrdmjccl96] {
    background: rgba(220, 38, 38, 0.75);
}

/* ==========================================================
   FORMATO RESPUESTAS DEL LLM
   ========================================================== */
[b-lrdmjccl96] .e-aiassist-response .e-content,
[b-lrdmjccl96] .e-aiassist-response-content {
    white-space: pre-wrap !important;
    word-break: break-word;
    line-height: 1.75;
    font-size: 0.875rem;
    color: #1a1a2e;
}

[b-lrdmjccl96] .e-aiassist-response p {
    margin: 0 0 0.45rem 0;
}

[b-lrdmjccl96] .e-aiassist-response ul,
[b-lrdmjccl96] .e-aiassist-response ol {
    margin: 0.3rem 0 0.5rem 1.4rem;
}

[b-lrdmjccl96] .e-aiassist-response li {
    margin-bottom: 0.2rem;
    line-height: 1.55;
}

[b-lrdmjccl96] .e-aiassist-response strong {
    font-weight: 700;
}

[b-lrdmjccl96] .e-aiassist-response code {
    background: #f0f0f0;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.82rem;
    font-family: monospace;
}

/* ==========================================================
   BOTÓN DE EVENTO NAVEGABLE
   ========================================================== */
.luna-event-link[b-lrdmjccl96] {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    color: #6a0dad;
    font-size: 0.88rem;
    padding: 0 2px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 1px;
    transition: transform .15s, opacity .15s;
    text-decoration: none;
    line-height: 1;
    vertical-align: middle;
    opacity: 0.75;
}

    .luna-event-link:hover[b-lrdmjccl96] {
        opacity: 1;
        transform: scale(1.25);
    }

/* ==========================================================
   RESPONSIVE MÓVIL (≤ 640px)
   En pantallas pequeñas la ventana ocupa el viewport completo.
   ========================================================== */
@media (max-width: 640px) {

    /* Ventana maximizada: fullscreen sin bordes redondeados */
    .luna-ventana[b-lrdmjccl96] {
        width: 100vw !important;
        height: 100dvh !important;   /* dvh = dynamic viewport height, descuenta el chrome del browser en iOS/Android */
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Header: ligeramente más alto para facilitar el toque */
    .luna-ventana-header[b-lrdmjccl96] {
        padding: 12px 14px;
        border-radius: 0 !important;
    }

    /* Botones de control: área de toque mínima 44px (guía Apple/Google) */
    .luna-ctrl-btn[b-lrdmjccl96] {
        padding: 10px 12px;
        font-size: 1.05rem;
    }

    /* Barra minimizada: separada del borde lateral, no sale del viewport */
    .luna-bar-minimizada[b-lrdmjccl96] {
        right: 12px !important;
        bottom: 16px !important;
        max-width: calc(100vw - 24px);
        padding: 10px 14px;
    }

    /* Banner: altura fija de 330px rompe en pantallas pequeñas */
    .banner-content[b-lrdmjccl96] {
        height: auto !important;
        padding: 24px 16px;
    }

    /* Sugerencias de prompt: texto más compacto en pantallas angostas */
    [b-lrdmjccl96] .e-ai-assist-toolbar-prompt-suggestion {
        font-size: 0.8rem !important;
    }
}
/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-nuv30cndcq] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-nuv30cndcq] {
    flex: 1;
}

.sidebar[b-nuv30cndcq] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-nuv30cndcq] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-nuv30cndcq]  a, .top-row .btn-link[b-nuv30cndcq] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-nuv30cndcq] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-nuv30cndcq] {
        display: none;
    }

    .top-row.auth[b-nuv30cndcq] {
        justify-content: space-between;
    }

    .top-row a[b-nuv30cndcq], .top-row .btn-link[b-nuv30cndcq] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-nuv30cndcq] {
        flex-direction: row;
    }

    .sidebar[b-nuv30cndcq] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-nuv30cndcq] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-nuv30cndcq], article[b-nuv30cndcq] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Shared/MainLayoutEx.razor.rz.scp.css */
/* ── Botón LUNA en el AppBar ── */
.luna-appbar-btn[b-ogvztrp2hl] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.15s;
    margin-left: 0.5rem;
}

    .luna-appbar-btn:hover[b-ogvztrp2hl] {
        background: rgba(255, 255, 255, 0.22);
        transform: translateY(-1px);
    }

.luna-appbar-label[b-ogvztrp2hl] {
    font-size: 0.78rem;
}
