/* =============================================
   PWA INSTALL BANNER - MentalFam
   Botón flotante + Modal de instrucciones iOS
   ============================================= */


/* ---- Botón flotante "Instalar App" ---- */

#pwa-install-btn {
    position: fixed;
    bottom: 160px;
    right: 20px;
    z-index: 9999;
    display: none;
    /* se muestra por JS */
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #7B4397, #1E9A8A);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(123, 67, 151, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pwa-pulse 2.5s infinite;
}

#pwa-install-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 30px rgba(123, 67, 151, 0.6);
}

#pwa-install-btn .pwa-icon {
    font-size: 20px;
}

@keyframes pwa-pulse {
    0%,
    100% {
        box-shadow: 0 6px 24px rgba(123, 67, 151, 0.45);
    }
    50% {
        box-shadow: 0 6px 32px rgba(123, 67, 151, 0.75);
    }
}


/* ---- Modal instrucciones iOS ---- */

#pwa-ios-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    align-items: flex-end;
    justify-content: center;
}

#pwa-ios-modal.active {
    display: flex;
}

.pwa-ios-box {
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 30px 24px 40px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    animation: slideUp 0.35s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.pwa-ios-box .pwa-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin: 0 auto 14px;
    display: block;
    box-shadow: 0 4px 16px rgba(123, 67, 151, 0.3);
}

.pwa-ios-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #7B4397;
    margin: 0 0 6px;
    font-family: 'Poppins', sans-serif;
}

.pwa-ios-box p.pwa-sub {
    font-size: 13px;
    color: #666;
    margin: 0 0 22px;
    font-family: 'Poppins', sans-serif;
}

.pwa-ios-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.pwa-ios-steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
}

.pwa-ios-steps li:last-child {
    border-bottom: none;
}

.pwa-step-num {
    background: linear-gradient(135deg, #7B4397, #1E9A8A);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.pwa-step-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.pwa-ios-close {
    background: #f0f0f0;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s;
}

.pwa-ios-close:hover {
    background: #e0e0e0;
}


/* Flecha apuntando al botón compartir de iOS */

.pwa-ios-arrow {
    font-size: 28px;
    color: #7B4397;
    margin-bottom: 4px;
    display: block;
}