/* Altoke Instalador PWA — cartel de instalación */
#altoke-pwa-banner,
#altoke-pwa-banner * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
#altoke-pwa-banner {
    --ap-c: #0d9f6e;
    --ap-bg: #ffffff;
    --ap-tx: #14181f;
    --ap-sub: #5b6472;
    --ap-chip: #f1f4f8;
    --ap-line: rgba(20, 24, 31, .08);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    display: flex;
    justify-content: center;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transform: translateY(120%);
    opacity: 0;
    transition: transform .42s cubic-bezier(.2, .9, .25, 1), opacity .3s ease;
}
#altoke-pwa-banner.ap-show {
    transform: translateY(0);
    opacity: 1;
}
#altoke-pwa-banner .ap-card {
    pointer-events: auto;
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--ap-bg);
    color: var(--ap-tx);
    border-radius: 22px;
    padding: 18px 18px 16px;
    box-shadow: 0 18px 50px rgba(10, 20, 40, .28), 0 2px 8px rgba(10, 20, 40, .12);
    border: 1px solid var(--ap-line);
}
#altoke-pwa-banner .ap-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ap-chip);
    color: var(--ap-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#altoke-pwa-banner .ap-x svg { width: 16px; height: 16px; }
#altoke-pwa-banner .ap-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 34px;
}
#altoke-pwa-banner .ap-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--ap-chip);
    box-shadow: 0 4px 12px rgba(10, 20, 40, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-c);
}
#altoke-pwa-banner .ap-icon svg { width: 30px; height: 30px; }
#altoke-pwa-banner .ap-title {
    display: block;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--ap-tx);
}
#altoke-pwa-banner .ap-sub {
    display: block;
    margin-top: 3px;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--ap-sub);
}
#altoke-pwa-banner .ap-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
#altoke-pwa-banner .ap-perk {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--ap-chip);
    color: var(--ap-tx);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
}
#altoke-pwa-banner .ap-perk svg { width: 13px; height: 13px; color: var(--ap-c); }
#altoke-pwa-banner .ap-steps {
    margin-top: 14px;
    list-style: none;
    background: var(--ap-chip);
    border-radius: 14px;
    padding: 12px 14px;
    display: none;
}
#altoke-pwa-banner .ap-steps.ap-open { display: block; }
#altoke-pwa-banner .ap-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--ap-tx);
    padding: 5px 0;
}
#altoke-pwa-banner .ap-n {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ap-c);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
#altoke-pwa-banner .ap-steps svg { width: 18px; height: 18px; vertical-align: middle; flex: 0 0 auto; color: var(--ap-sub); }
#altoke-pwa-banner .ap-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
}
#altoke-pwa-banner .ap-btn {
    position: relative;
    width: 100%;
    min-height: 50px;
    border-radius: 15px;
    background-color: var(--ap-c);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18), inset 0 -2px 0 rgba(0, 0, 0, .12);
    transition: transform .12s ease, filter .12s ease;
    -webkit-tap-highlight-color: transparent;
}
#altoke-pwa-banner .ap-btn:active { transform: scale(.975); filter: brightness(.95); }
#altoke-pwa-banner .ap-btn svg { width: 20px; height: 20px; }
#altoke-pwa-banner .ap-later {
    width: 100%;
    min-height: 38px;
    background: transparent;
    color: var(--ap-sub);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
    #altoke-pwa-banner {
        --ap-bg: #1b2028;
        --ap-tx: #f2f5f9;
        --ap-sub: #a3adbb;
        --ap-chip: #272e39;
        --ap-line: rgba(255, 255, 255, .08);
    }
}
@media (prefers-reduced-motion: reduce) {
    #altoke-pwa-banner { transition: opacity .2s ease; transform: none; }
}
@media (min-width: 700px) {
    #altoke-pwa-banner { justify-content: flex-end; padding-right: 24px; padding-bottom: 24px; }
}
#altoke-pwa-banner .ap-sec {
    width: 100%;
    min-height: 44px;
    border-radius: 13px;
    background: var(--ap-chip);
    color: var(--ap-tx);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#altoke-pwa-banner .ap-sec svg { width: 17px; height: 17px; }

#altoke-pwa-banner .ap-note {
    display: none;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ap-sub);
    padding: 4px 6px 2px;
}
#altoke-pwa-banner .ap-note.ap-open { display: block; }
#altoke-pwa-banner .ap-steps-wrap { display: none; }
#altoke-pwa-banner .ap-steps-wrap.ap-open { display: block; }
#altoke-pwa-banner .ap-steps-wrap .ap-steps { display: block; }
