/* La guía usa los tokens de EbeneCenter en ambos temas. */
.ec-guide-help {
    position: fixed;
    z-index: 1200;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: calc(var(--ec-bottom-nav-height, 66px) + 16px + env(safe-area-inset-bottom, 0px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    min-width: 44px;
    padding: 6px 10px;
    margin: 0;
    border: 0;
    box-shadow: 0 5px 20px var(--ec-shadow-color);
    border-radius: 10px;
    background: var(--ec-action-primary);
    color: var(--ec-action-on-primary);
    font: inherit;
    font-size: .8125rem;
    cursor: pointer;
}
.ec-guide-help[hidden], .ec-guide-spotlight[hidden] { display: none; }
.ec-guide-help:hover { background: var(--ec-action-primary-active); }
.ec-guide-help:focus-visible, .ec-guide-card button:focus-visible, .ec-guide-welcome button:focus-visible {
    outline: 3px solid var(--ec-focus);
    outline-offset: 3px;
}
.ec-guide-card, .ec-guide-welcome {
    background: var(--ec-surface);
    color: var(--ec-text-primary);
    border: 0;
    border-radius: 14px;
    padding: 24px;
    font: inherit;
    box-shadow: 0 14px 40px var(--ec-shadow-color);
    overflow-wrap: anywhere;
}
.ec-guide-card {
    position: fixed;
    z-index: 1300;
    margin: 0;
    width: min(390px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.ec-guide-welcome {
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    text-align: center;
}
.ec-guide-welcome::backdrop { background: var(--ec-overlay); }
.ec-guide-welcome img { border-radius: 16px; margin-bottom: 20px; }
.ec-guide-card h2, .ec-guide-welcome h2 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
}
.ec-guide-card h2:focus { outline: none; }
.ec-guide-card p, .ec-guide-welcome p { margin: 0 0 18px; font-size: .95rem; line-height: 1.55; }
.ec-guide-progress { margin-bottom: 12px; color: var(--ec-text-secondary); font-size: .8rem; font-variant-numeric: tabular-nums; }
.ec-guide-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.ec-guide-actions [data-guide-skip] { margin-right: auto; }
.ec-guide-primary, .ec-guide-quiet {
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
}
.ec-guide-primary { background: var(--ec-action-primary); color: var(--ec-action-on-primary); }
.ec-guide-primary:hover { background: var(--ec-action-primary-hover); }
.ec-guide-quiet { background: var(--ec-surface-soft); color: var(--ec-text-primary); }
.ec-guide-quiet:hover { background: var(--ec-canvas); }
.ec-guide-welcome .ec-guide-primary, .ec-guide-welcome .ec-guide-quiet { display: block; width: 100%; margin-top: 10px; }
.ec-guide-spotlight {
    position: fixed;
    z-index: 1250;
    pointer-events: none;
    border: 2px solid var(--ec-focus);
    border-radius: 10px;
    box-shadow: 0 0 0 200vmax var(--ec-overlay);
}
@media (max-width: 600px) {
    .ec-guide-card { padding: 20px; }
    .ec-guide-help { padding: 6px 10px; }
}

.ec-guide-card [hidden], .ec-guide-welcome [hidden] { display: none; }

@media (min-width: 992px) { .ec-guide-help { bottom: max(24px, env(safe-area-inset-bottom, 0px)); right: 24px; } }

@media (hover: hover) and (pointer: fine) { .ec-guide-help { min-height: 40px; } }
