/* Botón "Descargar app" (sidebar, solo admin) y modal de instrucciones PWA */

.sidebar-app {
    flex-shrink: 0;
    padding: 10px 12px;
    border-top: 1px solid rgba(213,182,128,.18);
    background: rgba(0,0,0,.15);
}

.sidebar-app-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(213,182,128,.35);
    background: rgba(141,98,66,.25);
    color: #f2e8da;
    font-size: .82rem;
    font-family: 'Public Sans', sans-serif;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.sidebar-app-btn:hover {
    background: rgba(141,98,66,.45);
    border-color: rgba(213,182,128,.6);
    color: #d5b680;
}

.sidebar-app-btn.hidden { display: none; }

/* Modal de instrucciones */
.pwa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
    animation: pwa-fade .15s ease;
}

.pwa-modal {
    position: relative;
    max-width: 380px;
    width: 100%;
    background: #faf7f2;
    color: #2b2b2b;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,.35);
    font-family: 'Public Sans', sans-serif;
}

.pwa-modal h3 {
    margin: 0 0 10px;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    color: #6b4423;
}

.pwa-modal p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: #4a4a4a;
}

.pwa-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    color: #8a8a8a;
    cursor: pointer;
    padding: 4px;
}

.pwa-modal-close:hover { color: #2b2b2b; }

@keyframes pwa-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}