/* ============================================================
   Detalles — kit compartido de las plantillas
   Intro, píldora de pista, dedo fantasma. Sin dependencias.
   ============================================================ */

.intro {
    --intro-bg: rgba(8, 4, 14, .55);
    --intro-fg: #fff;
    --intro-accent: #ff4d8d;
    --intro-font: system-ui, -apple-system, "Segoe UI", sans-serif;
    position: fixed; inset: 0; z-index: 80;
    display: grid; place-items: center;
    background: var(--intro-bg);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-family: var(--intro-font);
    color: var(--intro-fg);
    cursor: pointer;
    transition: opacity .8s ease;
    -webkit-tap-highlight-color: transparent;
}
.intro.gone { opacity: 0; pointer-events: none; }
.intro-in {
    display: flex; flex-direction: column; align-items: center;
    gap: 14px; padding: 20px; text-align: center;
}
.intro-ic {
    position: relative; width: 74px; height: 74px; border-radius: 50%;
    background: var(--intro-accent); color: #fff;
    display: flex; align-items: center; justify-content: center; flex: none;
    box-shadow: 0 10px 34px -8px var(--intro-accent), 0 0 46px -4px var(--intro-accent);
}
.intro-ic::before, .intro-ic::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 1.5px solid var(--intro-accent); opacity: .8;
    animation: introRing 2.4s ease-out infinite;
}
.intro-ic::after { animation-delay: 1.2s; }
@keyframes introRing {
    from { transform: scale(1); opacity: .75; }
    to   { transform: scale(1.9); opacity: 0; }
}
.intro-ic .ic, .intro-ic svg { width: 34px; height: 34px; }
.intro-cta {
    position: relative; padding: 13px 30px; border-radius: 999px;
    font-size: 1.05rem; font-weight: 600; line-height: 1.3;
}
.intro-cta::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    border: 1px solid currentColor; opacity: .35;
}
.intro-sub {
    font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; opacity: .6;
}

/* Píldora de pista inferior */
.kit-hint {
    position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 75; transform: translate(-50%, 14px);
    padding: 10px 20px; border-radius: 999px;
    font: 600 .82rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
    background: rgba(10, 6, 16, .72); color: #fff;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none; white-space: nowrap;
    transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.kit-hint.light {
    background: rgba(251, 246, 239, .88); color: #2a1a2e;
    box-shadow: 0 6px 22px -8px rgba(42, 26, 46, .4);
}
.kit-hint.show { opacity: 1; transform: translate(-50%, 0); }

/* Dedo fantasma (demos en auto) */
.kit-ghost {
    position: fixed; left: 0; top: 0; z-index: 95;
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border-radius: 50%; background: #fff;
    border: 2px solid rgba(0, 0, 0, .18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22), 0 0 0 5px rgba(255, 255, 255, .22);
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
    will-change: transform;
}
.kit-ghost.on { opacity: .92; }
.kit-ghost-ring {
    position: absolute; inset: -2px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .9); opacity: 0;
}
.kit-ghost-ring.go { animation: kgr .55s ease-out; }
@keyframes kgr {
    from { transform: scale(1); opacity: .9; }
    to   { transform: scale(2.4); opacity: 0; }
}

.sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .intro-ic::before, .intro-ic::after { animation: none; }
    .kit-ghost { transition: none; }
    .kit-ghost-ring.go { animation: none; }
}
