/* Guías por sección de Parashot para producción. */
.parashot-onboarding-root {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: auto;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.parashot-onboarding-root.hidden { display: none !important; }

.parashot-onboarding-root::before {
    content: "";
    position: fixed;
    inset: 0;
    background: transparent;
    transition: background .18s ease;
    pointer-events: none;
}

.parashot-onboarding-root.is-centered::before {
    background: rgba(15, 23, 42, .76);
    backdrop-filter: blur(2px);
}

.parashot-onboarding-spotlight {
    position: fixed;
    z-index: 121;
    border: 2px solid rgba(245, 158, 11, .95);
    border-radius: 16px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, .72), 0 0 0 5px rgba(245, 158, 11, .18);
    transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
    pointer-events: none;
}

.parashot-onboarding-root.is-centered .parashot-onboarding-spotlight { display: none; }

.parashot-onboarding-card {
    position: fixed;
    z-index: 122;
    width: min(360px, calc(100vw - 28px));
    border: 1px solid rgba(217, 119, 6, .34);
    border-radius: 20px;
    background: #fffaf0;
    color: #292524;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .30);
    overflow: hidden;
}

.dark .parashot-onboarding-card {
    background: #1c1917;
    color: #e7e5e4;
    border-color: rgba(245, 158, 11, .42);
}

.parashot-onboarding-root.is-centered .parashot-onboarding-card {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    width: min(430px, calc(100vw - 28px));
}

.parashot-onboarding-card-head {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: 1.15rem 1.15rem .75rem;
}

.parashot-onboarding-icon {
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #b45309;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(180, 83, 9, .2);
}

.parashot-onboarding-eyebrow,
.parashot-guide-eyebrow {
    margin: 0 0 .15rem;
    font-size: .62rem;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 900;
    color: #b45309;
}
.dark .parashot-onboarding-eyebrow,
.dark .parashot-guide-eyebrow { color: #fbbf24; }

.parashot-onboarding-title {
    margin: 0;
    font-family: ui-serif, Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 800;
    color: #78350f;
}
.dark .parashot-onboarding-title { color: #fde68a; }

.parashot-onboarding-body {
    padding: 0 1.15rem 1rem;
    font-size: .86rem;
    line-height: 1.62;
    color: #57534e;
}
.dark .parashot-onboarding-body { color: #d6d3d1; }
.parashot-onboarding-body p { margin: 0; }
.parashot-onboarding-body p + p { margin-top: .65rem; }
.parashot-onboarding-note { margin-top: .7rem !important; font-size: .78rem; color: #78716c; }
.dark .parashot-onboarding-note { color: #a8a29e; }

.parashot-onboarding-points { display: grid; gap: .55rem; margin-top: .85rem; }
.parashot-onboarding-point {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .62rem .7rem;
    border: 1px solid rgba(217, 119, 6, .16);
    border-radius: 12px;
    background: rgba(245, 158, 11, .07);
}
.parashot-onboarding-point strong { display: block; color: #78350f; font-size: .78rem; margin-bottom: .05rem; }
.dark .parashot-onboarding-point strong { color: #fde68a; }

.parashot-onboarding-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .85rem 1.15rem 1.1rem;
    border-top: 1px solid rgba(217, 119, 6, .14);
}
.parashot-onboarding-progress { font-size: .68rem; font-weight: 800; color: #a8a29e; white-space: nowrap; }
.parashot-onboarding-buttons { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.parashot-onboarding-button {
    border: 0;
    border-radius: 11px;
    padding: .62rem .85rem;
    font-size: .76rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, opacity .12s ease;
}
.parashot-onboarding-button:hover { transform: translateY(-1px); }
.parashot-onboarding-button:disabled { opacity: .55; cursor: wait; transform: none; }
.parashot-onboarding-button.primary { background: #b45309; color: #fff; }
.parashot-onboarding-button.primary:hover { background: #92400e; }
.parashot-onboarding-button.secondary { background: rgba(120, 53, 15, .08); color: #78350f; }
.dark .parashot-onboarding-button.secondary { background: rgba(245, 158, 11, .10); color: #fcd34d; }

.parashot-onboarding-replay {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem .9rem;
    border: 1px solid rgba(217, 119, 6, .24);
    border-radius: 14px;
    background: rgba(245, 158, 11, .07);
    text-align: left;
    transition: background .15s ease, border-color .15s ease;
}
.parashot-onboarding-replay:hover { background: rgba(245, 158, 11, .13); border-color: rgba(217, 119, 6, .40); }
.parashot-onboarding-replay strong { display: block; font-size: .78rem; color: #78350f; }
.dark .parashot-onboarding-replay strong { color: #fde68a; }
.parashot-onboarding-replay span:nth-child(2) > span { display: block; margin-top: .08rem; font-size: .68rem; color: #78716c; }
.dark .parashot-onboarding-replay span:nth-child(2) > span { color: #a8a29e; }
.parashot-guide-entry-wrap { margin-top: .75rem; }
.parashot-guide-entry-arrow { margin-left: auto; font-size: 1.35rem; color: #b45309; }

/* Guía completa opt-in */
.parashot-guide-root {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(15, 23, 42, .76);
    backdrop-filter: blur(3px);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.parashot-guide-root.hidden { display: none; }
.parashot-guide-dialog {
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 28px));
    overflow: auto;
    border-radius: 22px;
    border: 1px solid rgba(217, 119, 6, .34);
    background: #fffaf0;
    color: #292524;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .36);
}
.dark .parashot-guide-dialog { background: #1c1917; color: #e7e5e4; border-color: rgba(245, 158, 11, .42); }
.parashot-guide-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(217, 119, 6, .15);
}
.parashot-guide-head h2 { margin: 0; font-family: ui-serif, Georgia, serif; font-weight: 850; font-size: 1.35rem; color: #78350f; }
.dark .parashot-guide-head h2 { color: #fde68a; }
.parashot-guide-head p:last-child { margin: .28rem 0 0; font-size: .78rem; color: #78716c; line-height: 1.5; }
.dark .parashot-guide-head p:last-child { color: #a8a29e; }
.parashot-guide-close { border: 0; background: transparent; color: #78716c; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: .1rem .35rem; }
.parashot-guide-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .8rem 1.25rem;
    background: rgba(245, 158, 11, .055);
    border-bottom: 1px solid rgba(217, 119, 6, .12);
}
.parashot-guide-toggle { display: flex; gap: .6rem; align-items: flex-start; font-size: .76rem; cursor: pointer; }
.parashot-guide-toggle input { margin-top: .18rem; accent-color: #b45309; }
.parashot-guide-toggle strong, .parashot-guide-toggle small { display: block; }
.parashot-guide-toggle small { margin-top: .08rem; color: #78716c; line-height: 1.35; }
.dark .parashot-guide-toggle small { color: #a8a29e; }
.parashot-guide-reset { flex: 0 0 auto; border: 1px solid rgba(217,119,6,.3); border-radius: 10px; padding: .48rem .65rem; background: transparent; color: #92400e; font-size: .68rem; font-weight: 800; cursor: pointer; }
.dark .parashot-guide-reset { color: #fcd34d; }
.parashot-guide-list { display: grid; gap: .55rem; padding: 1rem 1.25rem; }
.parashot-guide-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    padding: .75rem;
    border: 1px solid rgba(217,119,6,.16);
    border-radius: 14px;
    background: rgba(255,255,255,.35);
}
.dark .parashot-guide-item { background: rgba(255,255,255,.025); }
.parashot-guide-item-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(245,158,11,.12); font-size: 1.15rem; }
.parashot-guide-item-copy { min-width: 0; }
.parashot-guide-item-title-row { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.parashot-guide-item-title-row strong { color: #78350f; font-size: .8rem; }
.dark .parashot-guide-item-title-row strong { color: #fde68a; }
.parashot-guide-item-copy p { margin: .12rem 0 0; color: #78716c; font-size: .7rem; line-height: 1.4; }
.dark .parashot-guide-item-copy p { color: #a8a29e; }
.parashot-guide-status { border-radius: 999px; padding: .16rem .42rem; background: rgba(245,158,11,.12); color: #92400e; font-size: .58rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.parashot-guide-status.is-seen { background: rgba(16,185,129,.12); color: #047857; }
.dark .parashot-guide-status.is-seen { color: #6ee7b7; }
.parashot-guide-open { border: 0; border-radius: 10px; padding: .52rem .68rem; background: #b45309; color: white; font-size: .68rem; font-weight: 850; cursor: pointer; white-space: nowrap; }
.parashot-guide-open:hover { background: #92400e; }
.parashot-guide-foot { padding: .75rem 1.25rem 1.05rem; text-align: center; font-size: .68rem; color: #78716c; border-top: 1px solid rgba(217,119,6,.12); }
.dark .parashot-guide-foot { color: #a8a29e; }

@media (max-width: 639px) {
    .parashot-onboarding-card { width: min(340px, calc(100vw - 20px)); }
    .parashot-onboarding-root.is-centered .parashot-onboarding-card { width: min(390px, calc(100vw - 20px)); }
    .parashot-onboarding-card-head { padding: 1rem 1rem .7rem; }
    .parashot-onboarding-body { padding: 0 1rem .85rem; }
    .parashot-onboarding-actions { padding: .8rem 1rem 1rem; }
    .parashot-onboarding-progress { display: none; }
    .parashot-guide-controls { align-items: flex-start; flex-direction: column; }
    .parashot-guide-item { grid-template-columns: 38px minmax(0, 1fr); }
    .parashot-guide-item-icon { width: 38px; height: 38px; }
    .parashot-guide-open { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    .parashot-onboarding-spotlight,
    .parashot-onboarding-button { transition: none; }
}

/* Los launchers flotantes/contextuales fueron retirados. Si queda alguno en un DOM
   restaurado desde caché, nunca debe hacerse visible. */
.parashot-context-guide-launcher,
.parashot-section-guide-launcher,
.parashot-modal-guide-button { display: none !important; }
