/* Guía pública de la app (/app/instalar/): instalar y activar avisos. Estilos propios, sin Tailwind nuevo. */
.app-guide {
    --guide-brand: #8a4534;
    --guide-brand-dark: #6e372a;
    --guide-ink: #1c1917;
    --guide-muted: #57534e;
    --guide-line: #ece6e3;
    --guide-soft: #faf7f6;
    max-width: 40rem;
    margin: 0 auto;
    padding: 32px 20px 48px;
    color: var(--guide-ink);
}

.app-guide-head {
    text-align: center;
    margin-bottom: 32px;
}

.app-guide-head img {
    display: block;
    height: 60px;
    width: auto;
    margin: 0 auto 20px;
}

.app-guide-head h1 {
    margin: 0 0 10px;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.app-guide-head p {
    margin: 0 auto;
    max-width: 32rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--guide-muted);
}

.app-guide-install {
    min-height: 48px;
    margin-top: 20px;
    padding: 0 28px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--guide-brand);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.app-guide-install:hover {
    background: var(--guide-brand-dark);
}

.app-guide-section {
    margin-top: 28px;
}

.app-guide-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 1.1875rem;
    font-weight: 700;
}

.app-guide-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--guide-brand);
    border-radius: 50%;
}

.app-guide-lead {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--guide-muted);
}

.app-guide-sub {
    margin: 22px 0 6px;
    font-size: 1rem;
    font-weight: 700;
    scroll-margin-top: 16px;
}

.app-guide-card {
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid var(--guide-line);
    border-radius: 12px;
}

.app-guide-card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 0 18px;
    cursor: pointer;
    list-style: none;
}

.app-guide-card > summary::-webkit-details-marker {
    display: none;
}

.app-guide-card > summary::after {
    content: '';
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-right: 2px solid #a8a29e;
    border-bottom: 2px solid #a8a29e;
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.15s ease;
}

.app-guide-card[open] > summary::after {
    transform: rotate(-135deg) translateY(-3px);
}

.app-guide-card > summary:focus-visible {
    outline: 2px solid var(--guide-brand);
    outline-offset: 2px;
    border-radius: 12px;
}

.app-guide-os {
    font-size: 1rem;
    font-weight: 600;
}

.app-guide-hint {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--guide-muted);
}

.app-guide-card ol,
.app-guide-card ul {
    margin: 0;
    padding: 4px 18px 16px 38px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.app-guide-card ol {
    list-style: decimal;
}

.app-guide-card ul {
    list-style: disc;
}

.app-guide-card li::marker {
    color: var(--guide-brand);
    font-weight: 700;
}

.app-guide-tip {
    margin: 0 18px 16px;
    padding: 10px 12px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--guide-muted);
    background: var(--guide-soft);
    border-radius: 8px;
}

.app-guide-trouble {
    background: var(--guide-soft);
}

.app-guide-trouble h3 {
    margin: 0;
    padding: 16px 18px 10px;
    font-size: 1rem;
    font-weight: 600;
}

.app-guide-plain p {
    margin: 0;
    padding: 16px 18px;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.app-guide-foot {
    margin-top: 32px;
    text-align: center;
}

.app-guide-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--guide-brand);
    text-decoration: none;
    border: 1px solid var(--guide-line);
    border-radius: 10px;
}

.app-guide-back:hover {
    background: var(--guide-soft);
}

@media (max-width: 480px) {
    .app-guide {
        padding: 24px 16px 40px;
    }

    .app-guide-head h1 {
        font-size: 1.4375rem;
    }
}

/* Enlaces dentro de los pasos (Tailwind les quita el subrayado y el color). */
.app-guide-card li a {
    color: var(--guide-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
