/* ══════════════════════════════════════════
   PWA Install Banner – Solo para index.php
   ══════════════════════════════════════════ */

#pwa-install-banner {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    width: calc(100% - 32px);
    max-width: 560px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(37, 99, 235, .35),
                0 0 0 1px rgba(255,255,255,.1) inset;
    transition: bottom .45s cubic-bezier(.22,1,.36,1),
                opacity .45s ease;
    opacity: 0;
}

#pwa-install-banner.show {
    bottom: 24px;
    opacity: 1;
}

/* Icono izquierdo */
.pwa-banner-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border-radius: 12px;
    font-size: 20px;
}

/* Texto */
.pwa-banner-text {
    flex: 1;
    min-width: 0;
}
.pwa-banner-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}
.pwa-banner-text span {
    display: block;
    font-size: 12.5px;
    opacity: .85;
    line-height: 1.4;
}

/* Botones */
.pwa-banner-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-btn-install {
    padding: 9px 18px;
    background: #fff;
    color: #1e3a8a;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.pwa-btn-install:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.pwa-btn-install:active {
    transform: scale(.97);
}

.pwa-btn-dismiss {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.7);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.pwa-btn-dismiss:hover {
    background: rgba(255,255,255,.25);
    color: #fff;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 480px) {
    #pwa-install-banner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 16px;
        max-width: calc(100% - 24px);
    }
    .pwa-banner-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    .pwa-banner-text strong { font-size: 14px; }
    .pwa-banner-text span  { font-size: 12px; }
    .pwa-btn-install { padding: 8px 14px; font-size: 13px; }
    .pwa-banner-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
