/* Estilos para el banner de instalación PWA */

#pwa-install-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #265A99 0%, #1a4a7a 100%);
    color: white;
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: bottom 0.3s ease-out;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
}

#pwa-install-banner.show {
    bottom: 0;
}

.pwa-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pwa-banner-icon {
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pwa-banner-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.pwa-banner-text span {
    font-size: 0.875rem;
    opacity: 0.9;
}

.pwa-banner-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.pwa-btn-install {
    background: white;
    color: #265A99;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pwa-btn-install:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pwa-btn-install:active {
    transform: translateY(0);
}

.pwa-btn-dismiss {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pwa-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.pwa-btn-dismiss:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    #pwa-install-banner {
        padding: 0.75rem;
    }
    
    .pwa-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .pwa-banner-icon {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .pwa-banner-text {
        text-align: center;
    }
    
    .pwa-banner-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .pwa-btn-install {
        flex: 1;
        justify-content: center;
        padding: 0.625rem 1rem;
    }
}

/* Ocultar banner si la PWA ya está instalada */
@media (display-mode: standalone) {
    #pwa-install-banner {
        display: none !important;
    }
}

