/* Recorridos con recuadros (peluges-tour.js). Por encima de diálogos y menús de MudBlazor (z-index ~1400-2000). */
.pg-tour { position: fixed; inset: 0; z-index: 100000; font-family: inherit; }

/* Capa que impide pulsar la pantalla de debajo mientras dura el paso. */
.pg-tour-blocker { position: fixed; inset: 0; background: transparent; }

/* El «foco»: un hueco con una sombra enorme alrededor que oscurece el resto. */
.pg-tour-hole {
    position: fixed;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(24, 12, 28, .58), 0 0 0 3px var(--primary, #6A2C70) inset, 0 0 0 4px rgba(255, 255, 255, .85);
    pointer-events: none;
    transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}
.pg-tour-hole[hidden] { display: none; }
/* Sin hueco (paso centrado) también se oscurece la pantalla. */
.pg-tour:has(.pg-tour-hole[hidden]) .pg-tour-blocker { background: rgba(24, 12, 28, .58); }

.pg-tour-pop {
    position: fixed;
    width: min(360px, calc(100vw - 24px));
    background: var(--surface-1, #fff);
    color: var(--text, #2b2230);
    border-radius: 16px;
    padding: 16px 18px 14px;
    box-shadow: 0 18px 50px rgba(30, 10, 40, .35), 0 0 0 1px rgba(106, 44, 112, .18);
    animation: pg-tour-in .18s ease-out;
}
@keyframes pg-tour-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pg-tour-pop, .pg-tour-hole { animation: none; transition: none; } }

.pg-tour-x {
    position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%;
    background: transparent; color: var(--text-muted, #6b5f73); font-size: 22px; line-height: 1; cursor: pointer;
}
.pg-tour-x:hover { background: rgba(106, 44, 112, .1); }
.pg-tour-step { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary, #6A2C70); }
.pg-tour-title { margin: 4px 28px 6px 0; font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.pg-tour-text { margin: 0 0 12px; font-size: .92rem; line-height: 1.45; color: var(--text-muted, #4b4153); }

.pg-tour-actions { display: flex; align-items: center; gap: 8px; }
.pg-tour-dots { flex: 1; display: flex; gap: 5px; justify-content: center; }
.pg-tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(106, 44, 112, .25); }
.pg-tour-dots i.on { background: var(--primary, #6A2C70); width: 16px; border-radius: 4px; }
.pg-tour-btn {
    border: 1px solid rgba(106, 44, 112, .3); background: transparent; color: var(--primary, #6A2C70);
    border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .85rem; cursor: pointer;
}
.pg-tour-btn:hover { background: rgba(106, 44, 112, .08); }
.pg-tour-btn--primary { background: var(--primary, #6A2C70); color: #fff; border-color: transparent; }
.pg-tour-btn--primary:hover { background: var(--primary-strong, #562359); }
.pg-tour-btn:focus-visible, .pg-tour-x:focus-visible { outline: 3px solid rgba(106, 44, 112, .45); outline-offset: 2px; }
.pg-tour-btn[hidden] { display: none; }

/* ── Bienvenida de la primera vez ─────────────────────────────────────────── */
.help-welcome { text-align: center; padding: 8px 8px 0; }
.help-welcome-title { margin: 10px 0 6px; font-size: 1.35rem; font-weight: 800; color: var(--text, #2B2330); }
.help-welcome-text { margin: 0 auto; max-width: 440px; font-size: .95rem; line-height: 1.5; color: var(--text-muted, #6E6578); }
.help-welcome-count { margin: 0; font-size: .82rem; font-weight: 600; color: var(--primary, #6A2C70); }

/* ── Puesta en marcha ─────────────────────────────────────────────────────── */
.help-start-summary { display: flex; align-items: center; gap: 18px; border: 1px solid var(--border, #EBE4EA); border-radius: 16px; background: var(--surface-1, #fff); }
.help-start-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.help-start-ring span { position: absolute; font-size: .82rem; font-weight: 700; color: var(--text, #2B2330); }
.help-start-list { display: flex; flex-direction: column; gap: 10px; }
.help-start-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--border, #EBE4EA); border-radius: 14px; background: var(--surface-1, #fff); }
.help-start-item.is-done { background: color-mix(in srgb, var(--success, #2E8B57) 6%, var(--surface-1, #fff)); }
.help-start-status { flex: 0 0 auto; display: flex; }
.help-start-body { flex: 1 1 auto; min-width: 0; }
.help-start-title { display: flex; align-items: center; flex-wrap: wrap; font-weight: 700; color: var(--text, #2B2330); }
.help-start-why { font-size: .86rem; color: var(--text-muted, #6E6578); margin-top: 2px; }
.help-start-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; flex: 0 0 auto; }
@media (max-width: 720px) {
    .help-start-item { flex-wrap: wrap; }
    .help-start-actions { width: 100%; justify-content: flex-start; padding-left: 38px; }
    .help-start-summary { flex-direction: column; text-align: center; }
}

/* ── Soporte técnico ──────────────────────────────────────────────────────── */
.help-support-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.help-support-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border: 1px solid var(--border, #EBE4EA); border-radius: 16px; background: var(--surface-1, #fff); }
.help-support-card h2 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--text, #2B2330); }
.help-support-card p { margin: 0; font-size: .9rem; color: var(--text-muted, #6E6578); flex: 1 1 auto; }
.help-support-detail { font-size: .8rem; color: var(--text-faint, #9A8FA3); word-break: break-all; }
.help-support-tips { margin: 0; padding-left: 20px; line-height: 1.6; color: var(--text-muted, #6E6578); }
ul.help-support-tips { list-style: disc; }
ol.help-support-tips { list-style: decimal; }
.help-support-tips li { margin-bottom: 4px; }
.help-support-data { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, #F8F4F7); border: 1px solid var(--border, #EBE4EA); font-size: .82rem; white-space: pre-wrap; }

/* Texto solo para lectores de pantalla. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
