/* Sitio demo.* — chrome inferior + panel a pantalla completa */
.demo-site-body {
    --demo-dock-h: 72px;
    margin: 0;
    min-height: 100vh;
    background: #000000;
    color: #e5e5e5;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

html:not(.dark-theme) .demo-site-body,
.demo-site-body:not(.dark-theme),
.demo-site-body[data-theme="light"] {
    background: #f4f6fb;
    color: #14213d;
}

.demo-site-main {
    height: calc(100vh - var(--demo-dock-h));
    min-height: 480px;
    padding: 0;
    overflow: hidden;
}

/* ----- Dock inferior unificado ----- */
.demo-site-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    min-height: var(--demo-dock-h);
    background: linear-gradient(180deg, #0d1524 0%, #05070c 100%);
    border-top: 1px solid rgba(252, 163, 17, 0.32);
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.45);
}

.demo-site-dock--inline {
    position: relative;
    z-index: 5;
    min-height: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: none;
}

html:not(.dark-theme) .demo-site-dock,
body:not(.dark-theme) .demo-site-dock,
body[data-theme="light"] .demo-site-dock {
    background: #ffffff;
    border-top-color: rgba(20, 33, 61, 0.12);
    box-shadow: 0 -8px 24px rgba(20, 33, 61, 0.08);
}

.demo-site-dock-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: var(--demo-dock-h);
    max-width: 100%;
    padding: 0.85rem 1.35rem;
}

.demo-site-dock-info {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
}

.demo-site-dock-badge {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #111;
    background: linear-gradient(135deg, #ffd56a 0%, #fca311 100%);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(252, 163, 17, 0.35);
}

.demo-site-dock-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(229, 229, 229, 0.82);
    max-width: 52rem;
}

html:not(.dark-theme) .demo-site-dock-text,
body:not(.dark-theme) .demo-site-dock-text,
body[data-theme="light"] .demo-site-dock-text {
    color: rgba(20, 33, 61, 0.72);
}

.demo-site-dock-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.demo-site-dock-link {
    color: rgba(229, 229, 229, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(252, 163, 17, 0.28);
    background: rgba(255, 255, 255, 0.04);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.demo-site-dock-link:hover {
    color: #fca311;
    border-color: rgba(252, 163, 17, 0.55);
    background: rgba(252, 163, 17, 0.08);
    text-decoration: none;
}

html:not(.dark-theme) .demo-site-dock-link,
body:not(.dark-theme) .demo-site-dock-link,
body[data-theme="light"] .demo-site-dock-link {
    color: rgba(20, 33, 61, 0.82);
    background: rgba(20, 33, 61, 0.03);
    border-color: rgba(20, 33, 61, 0.14);
}

html:not(.dark-theme) .demo-site-dock-link:hover,
body:not(.dark-theme) .demo-site-dock-link:hover,
body[data-theme="light"] .demo-site-dock-link:hover {
    color: #d98900;
    background: rgba(252, 163, 17, 0.1);
}

.demo-site-dock-steam {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.05rem;
    border-radius: 10px;
    background: #14213d;
    color: #fff;
    border: 1px solid rgba(252, 163, 17, 0.45);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.demo-site-dock-steam:hover {
    color: #fff;
    background: #1c2f52;
    border-color: #fca311;
    text-decoration: none;
    transform: translateY(-1px);
}

html:not(.dark-theme) .demo-site-dock-steam,
body:not(.dark-theme) .demo-site-dock-steam,
body[data-theme="light"] .demo-site-dock-steam {
    background: #14213d;
    color: #fff;
}

/* Compat: estilos legacy topbar/banner */
.demo-site-topbar,
.demo-site-banner,
.lp-adm-footer {
    display: none !important;
}

.lp-adm.demo-standalone {
    border-radius: 0;
    border: none;
    box-shadow: none;
    height: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lp-adm.demo-standalone .demo-panel-wrapper {
    flex: 1;
    min-height: 0 !important;
    height: 100%;
}

.lp-adm.demo-standalone .lp-adm-layout {
    flex: 1;
    min-height: 0 !important;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.lp-adm.demo-standalone .lp-adm-main {
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lp-adm.demo-standalone .lp-adm-sidebar {
    align-self: stretch;
}

.lp-adm.demo-standalone .lp-adm-sidebar-wrap {
    max-height: none;
    height: auto;
    flex: 1;
}

.lp-adm.demo-standalone .lp-adm-content {
    flex: 1;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lp-adm-demo-pill {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fca311;
    background: rgba(252, 163, 17, 0.08);
    border: 1px solid rgba(252, 163, 17, 0.35);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    margin-right: 0.35rem;
}

.lp-adm-real-shell .demo-nav-logout {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(229, 229, 229, 0.85) !important;
    text-decoration: none !important;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.lp-adm-real-shell .demo-nav-logout:hover {
    color: #fca311 !important;
    background: rgba(252, 163, 17, 0.08);
}

.lp-adm-real-shell:not(.dark-theme) .demo-nav-logout,
.lp-adm-real-shell[data-theme="light"] .demo-nav-logout {
    color: #14213d !important;
}

.lp-adm-real-shell:not(.demo-standalone) {
    display: flex;
    flex-direction: column;
}

.lp-adm-real-shell:not(.demo-standalone) .demo-panel-wrapper {
    flex: 1;
    min-height: 0;
}

@media (max-width: 900px) {
    .demo-site-body {
        --demo-dock-h: auto;
    }

    .demo-site-dock {
        height: auto;
        min-height: 0;
    }

    .demo-site-dock-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem 1rem;
        gap: 0.75rem;
        min-height: 0;
    }

    .demo-site-dock-text {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .demo-site-dock-actions {
        justify-content: stretch;
    }

    .demo-site-dock-link,
    .demo-site-dock-steam {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .demo-site-main {
        height: calc(100vh - 120px);
    }
}
