/* Fallback sin depender solo de CustomCSSClassName del DetailView */
html body .oh-root.oh-root-welcome {
    --oh-ink: #0f172a;
    --oh-muted: #475569;
    --oh-accent: #00a884;
    --oh-accent-hover: #008f70;
    --oh-surface: #f1f7f6;
    position: relative !important;
    z-index: 1;
    isolation: isolate;
    min-height: calc(100vh - 7rem);
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 2.75rem;
    background: #f1f7f6 !important;
    overflow: hidden !important;
    perspective: 1000px;
    box-sizing: border-box;
}

html body .oh-root.oh-root-welcome .oh-webgl-canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    display: block !important;
}

html body .oh-root.oh-root-welcome .oh-welcome-saas,
html body .oh-root.oh-root-welcome .oh-saas-wrapper {
    position: relative;
    z-index: 1;
}

html body .oh-root.oh-root-welcome .oh-saas-wrapper {
    width: 100%;
    max-width: 1040px;
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border: 1px solid rgba(0, 168, 132, 0.25);
    border-radius: 32px;
    padding: 2.75rem 3rem;
    box-shadow:
        0 25px 60px rgba(0, 168, 132, 0.12),
        0 10px 30px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 #fff;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.1, 1, 0.1, 1);
}

html body .oh-root.oh-root-welcome .oh-saas-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00a884, #00d2d3, #008f70, #00a884);
    background-size: 300% 100%;
    animation: cicumba-oh-ambient-glow 4s linear infinite;
}

/* Onboarding Home: full-bleed glass + WebGL host (rompe opacidad del shell XAF) */

html body .cicumba-onboarding-home-dv .view-content,
html body .cicumba-onboarding-home-dv .dxbl-sc-content,
html body .cicumba-onboarding-home-dv .xaf-main-content,
html body .cicumba-onboarding-home-dv .detail-view-content,
html body .cicumba-onboarding-home-dv .dxbl-layout,
html body .cicumba-onboarding-home-dv .dxbl-layout-item,
html body .cicumba-onboarding-home-dv .dxbl-layout-group,
html body .cicumba-onboarding-home-dv .xaf-layout-item,
html body .cicumba-onboarding-home-dv .xaf-property-editor,
html body .cicumba-onboarding-home-dv .dxbl-property-editor,
html body .cicumba-onboarding-home-dv .dxbl-text-edit,
html body .cicumba-onboarding-home-dv .dxbl-form-layout {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

html body .cicumba-onboarding-home-dv .detail-view-content,
html body .cicumba-onboarding-home-dv .dxbl-layout {
    padding: 0 !important;
    margin: 0 !important;
    min-height: calc(100vh - 7rem) !important;
    height: 100% !important;
    overflow: visible !important;
}

html body .cicumba-onboarding-home-dv .xaf-caption,
html body .cicumba-onboarding-home-dv .dxbl-fl-ctrl-caption,
html body .cicumba-onboarding-home-dv .dxbl-fl-item > .dxbl-text {
    display: none !important;
}

html body .cicumba-onboarding-home-dv .oh-root {
    --oh-ink: #0f172a;
    --oh-muted: #475569;
    --oh-accent: #00a884;
    --oh-accent-hover: #008f70;
    --oh-surface: #f1f7f6;
    position: relative;
    z-index: 1;
    isolation: isolate;
    min-height: calc(100vh - 7rem);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 2.75rem;
    background: var(--oh-surface) !important;
    overflow: hidden;
    perspective: 1000px;
    box-sizing: border-box;
}

html body .cicumba-onboarding-home-dv .oh-root.oh-root-chat {
    perspective: none;
    justify-content: flex-start;
}

html body .cicumba-onboarding-home-dv .oh-webgl-canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    display: block !important;
}

html body .cicumba-onboarding-home-dv .oh-welcome-saas,
html body .cicumba-onboarding-home-dv .oh-saas-wrapper,
html body .cicumba-onboarding-home-dv .oh-started,
html body .cicumba-onboarding-home-dv .oh-confirm,
html body .cicumba-onboarding-home-dv .oh-chat {
    position: relative;
    z-index: 1;
}

html body .cicumba-onboarding-home-dv .oh-saas-wrapper {
    width: 100%;
    max-width: 1040px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border: 1px solid rgba(0, 168, 132, 0.25);
    border-radius: 32px;
    padding: 2.75rem 3rem;
    box-shadow:
        0 25px 60px rgba(0, 168, 132, 0.12),
        0 10px 30px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 #fff;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.1, 1, 0.1, 1);
}

html body .cicumba-onboarding-home-dv .oh-saas-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00a884, #00d2d3, #008f70, #00a884);
    background-size: 300% 100%;
    animation: cicumba-oh-ambient-glow 4s linear infinite;
}

@keyframes cicumba-oh-ambient-glow {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

@media (prefers-reduced-motion: reduce) {
    html body .cicumba-onboarding-home-dv .oh-saas-wrapper::before,
    html body .oh-root.oh-root-welcome .oh-saas-wrapper::before {
        animation: none !important;
    }
    html body .cicumba-onboarding-home-dv .oh-saas-wrapper,
    html body .oh-root.oh-root-welcome .oh-saas-wrapper {
        transition: none !important;
        transform: none !important;
    }
}
