/* =========================================================================
   PUNTO 0 — ASSETS/CSS/SHELL/PWA.CSS
   Estilos del Pop-up de instalación PWA, botón permanente y gesto Swipe Back
   ========================================================================= */

.df-pwa-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: var(--z-modal, 99990);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.df-pwa-modal-overlay.is-open {
    display: flex;
}
.df-pwa-modal-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 2px;
    padding: 26px 22px 22px 22px;
    font-family: 'Anonymous Pro', monospace;
    color: #efefef;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.92);
}
.df-pwa-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent !important;
    border: none !important;
    color: #777;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}
.df-pwa-modal-close:hover {
    color: #efefef;
}
.df-pwa-modal-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.df-pwa-modal-title {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #efefef;
}
.df-pwa-modal-desc {
    margin: 0 0 18px 0;
    font-size: 13px;
    line-height: 1.55;
    color: #a6a6a6;
}
.df-pwa-ios-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 18px 0;
    padding: 12px 14px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}
.df-pwa-step {
    font-size: 12.5px;
    line-height: 1.45;
    color: #cfcfcf;
}
.df-pwa-step span {
    color: #efefef;
    font-weight: 700;
    margin-right: 4px;
}
.df-pwa-modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.df-pwa-btn-primary {
    flex: 1 1 auto;
    height: 40px;
    background: #efefef !important;
    color: #020202 !important;
    border: 1px solid #efefef !important;
    border-radius: 2px;
    font-family: 'Anonymous Pro', monospace;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.df-pwa-btn-primary:hover {
    opacity: 0.9;
}
.df-pwa-btn-ghost {
    height: 40px;
    padding: 0 14px;
    background: transparent !important;
    color: #888 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 2px;
    font-family: 'Anonymous Pro', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
}
.df-pwa-btn-ghost:hover {
    color: #efefef !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Indicador visual del gesto Swipe Back en mobile */
.df-edge-back-indicator {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translate(-100%, -50%);
    width: 34px;
    height: 48px;
    border-radius: 0 24px 24px 0;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: none;
    color: #efefef;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: var(--z-modal, 99990);
    opacity: 0;
    transition: opacity 0.12s ease;
}

/* Ocultar accesos de instalación si ya corre como PWA standalone */
html.df-is-standalone .df-pwa-install-link {
    display: none !important;
}

/* En modo "Ver como usuario" ocultar también el acceso desktop de prueba Admin */
body.modo-vista-usuario #v2-user-panel .df-pwa-install-link {
    display: none !important;
}
