/**
 * Guía de instalación PWA / acceso directo (web guest + reutilizable).
 * Estética alineada con guest oscuro (Nunito, #de1118, #0d0f14).
 */
.lss-install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 10020;
    display: none;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(13, 15, 20, 0.94);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ededed;
}

.lss-install-banner.is-visible {
    display: flex;
}

.lss-install-banner__logo {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    display: block;
}

.lss-install-banner__text {
    flex: 1 1 auto;
    min-width: 0;
}

.lss-install-banner__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
    color: #f7f7f7;
}

.lss-install-banner__sub {
    margin: 2px 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(232, 228, 200, 0.82);
}

.lss-install-banner__cta {
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    background: #de1118;
    color: #fff;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.lss-install-banner__cta:hover,
.lss-install-banner__cta:focus {
    background: #ff0000;
    outline: none;
}

.lss-install-banner__close {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ededed;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0;
}

.lss-install-banner__close:hover,
.lss-install-banner__close:focus {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

/* Empujar banner si el consentimiento de cookies está visible */
body.lss-cookie-open .lss-install-banner {
    bottom: calc(200px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 576px) {
    body.lss-cookie-open .lss-install-banner {
        bottom: calc(160px + env(safe-area-inset-bottom, 0px));
    }
}

.lss-install-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.72);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.lss-install-overlay.is-open {
    display: flex;
}

.lss-install-sheet {
    width: min(480px, 100%);
    max-height: min(88vh, 720px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #14171e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px 18px 14px 14px;
    padding: 22px 18px 18px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    color: #ededed;
}

.lss-install-sheet__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ededed;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.lss-install-sheet__logo {
    width: 64px;
    height: 64px;
    max-width: 64px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 4px auto 12px;
    background: transparent;
}

.lss-install-sheet__title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #f7f7f7;
}

.lss-install-sheet__lead {
    margin: 0 0 18px;
    text-align: center;
    color: rgba(232, 228, 200, 0.78);
    font-size: 0.92rem;
    line-height: 1.45;
}

.lss-install-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.lss-install-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lss-install-step__num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #de1118;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    display: grid;
    place-items: center;
}

.lss-install-step strong {
    display: block;
    color: #f7f7f7;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.lss-install-step p {
    margin: 0;
    color: rgba(232, 228, 200, 0.78);
    font-size: 0.86rem;
    line-height: 1.45;
}

.lss-install-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #f7f7f7;
    font-weight: 700;
    white-space: nowrap;
}

.lss-install-note {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(232, 207, 106, 0.1);
    border: 1px solid rgba(232, 207, 106, 0.28);
    color: rgba(232, 228, 200, 0.95);
    font-size: 0.82rem;
    line-height: 1.4;
}

.lss-install-actions {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.lss-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.lss-install-btn--primary {
    background: #de1118;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.lss-install-btn--primary:hover,
.lss-install-btn--primary:focus {
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    outline: none;
}

.lss-install-btn--ghost {
    background: transparent;
    color: #ededed;
    border-color: rgba(255, 255, 255, 0.22);
}

.lss-install-btn--ghost:hover,
.lss-install-btn--ghost:focus {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    outline: none;
}

/* Acciones especiales del menú guest */
.lss-nav-actions {
    margin-top: 0.35rem;
}

.lss-nav-install,
.lss-nav-miniapp {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-decoration: none !important;
}

.lss-nav-install {
    margin-top: 0.35rem;
    padding: 0.55rem 1.1rem !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 48%, rgba(0, 0, 0, 0.28) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 4px 14px rgba(0, 0, 0, 0.28);
    color: #f7f7f7 !important;
    font-weight: 700;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.lss-nav-install:hover,
.lss-nav-install:focus {
    color: #fff !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.lss-nav-install:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.08);
}

.lss-nav-install__icon {
    width: 1.15rem;
    text-align: center;
    color: #ff6b6b;
}

.lss-nav-miniapp {
    margin-top: 0.55rem;
    padding: 0.55rem 1.1rem !important;
    border-radius: 12px;
    border: 1px solid rgba(232, 207, 106, 0.35);
    background:
        linear-gradient(180deg, rgba(232, 207, 106, 0.18) 0%, rgba(232, 207, 106, 0.06) 50%, rgba(0, 0, 0, 0.22) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 4px 14px rgba(0, 0, 0, 0.22);
    color: #f7f7f7 !important;
    font-weight: 700;
}

.lss-nav-miniapp:hover,
.lss-nav-miniapp:focus {
    color: #fff !important;
    filter: brightness(1.06);
}

.lss-nav-miniapp__icon {
    width: 1.15rem;
    text-align: center;
    color: #e8cf6a;
}

.dropdown-item.lss-nav-install,
.dropdown-item.lss-nav-miniapp {
    justify-content: flex-start;
    margin: 4px 8px;
    width: calc(100% - 16px);
    color: #212529 !important;
}

.dropdown-item.lss-nav-install {
    background:
        linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 50%, #d8d8d8 100%);
    border: 1px solid #cfcfcf;
    box-shadow:
        inset 0 1px 0 #fff,
        0 2px 4px rgba(0, 0, 0, 0.08);
}

.dropdown-item.lss-nav-install .lss-nav-install__icon {
    color: #de1118;
}

.dropdown-item.lss-nav-miniapp {
    background:
        linear-gradient(180deg, #fff8e1 0%, #f5ecd0 100%);
    border: 1px solid #e6d9a8;
}

.dropdown-item.lss-nav-miniapp .lss-nav-miniapp__icon {
    color: #b8860b;
}

@media (max-width: 767.98px) {
    .fullscreen-menu .lss-nav-actions {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 8px 0;
    }

    .fullscreen-menu .lss-nav-install,
    .fullscreen-menu .lss-nav-miniapp {
        width: 95% !important;
        max-width: 95% !important;
        min-width: 0;
        box-sizing: border-box;
        font-size: 1.05rem !important;
    }
}

@media (min-width: 768px) {
    .lss-install-banner {
        left: auto;
        right: 20px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        width: 380px;
        max-width: calc(100vw - 40px);
        margin: 0;
    }
}
